Need assistance on HTTP Request node

Hello all,

I have a Max BR1 mini that I would like to communicate with and grab some data. The API works off of a HTTP request (Get and POST) I am sending a POST command to login and I am getting back an error:

"RequestError: Hostname/IP does not match certificate's altnames: IP: 192.168.0.1 is not in the cert's list: : https://192.168.0.1"

I think that I might have the configuration of the HTTP node incorrectly. Here is a screenshot of what I have so far:

Do you need to use https? Perhaps it should be http.

If it is a self-signed certificate, try it withmsg.rejectUnauthorized set it to false.

Sure, right now I have an inject node injecting this into the HTTP request node

{
"username": "admin",
"password": "password"
}

The rejectUnauthorized is a boolean or a text string?

Boolean, eg

{
"username": "admin",
"password": "password",
rejectUnauthorized: false
}

Thank you I was able to figure it out and on one command, i was able to Post a login. The login is suppose to return a cookie and a status (which I got both) now, when I use a GET command, it fails as a 401. I am not sure what I am forgetting in my setup that could cause this error

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.