pdmangel / node-red-contrib-openhab2

Other
21 stars 15 forks source link

openHAB 3 rest api issue error code 415 #59

Closed phuongpham closed 3 years ago

phuongpham commented 3 years ago

Hi I'm currently testing out OH3. The palette have been working fine on OH2.

I'm receving follow error in node-red:

"response error '{"statusCode":415,"body":"","headers":{"connection":"close","date":"Sat, 02 Jan 2021 18:18:09 GMT","content-length":"0","server":"Jetty(9.4.20.v20190813)"},"request":{"uri":{"protocol":"http:","slashes":true,"auth":null,"host":"localhost:8080","port":"8080","hostname":"localhost","hash":null,"search":null,"query":null,"pathname":"/rest/items/nordPool/state","path":"/rest/items/nordPool/state","href":"http://localhost:8080/rest/items/nordPool/state"},"method":"PUT","headers":{"content-length":5}}}' on 'http://localhost:8080/rest/items/nordPool/state'" Error in openhab log: 19:12:54.475 [WARN ] [core.io.rest.auth.internal.AuthFilter] - Unauthorized API request: Invalid Basic authentication credentials

phuongpham commented 3 years ago

Could it be missing header that is required in OH3 Rest API?

https://github.com/steilerDev/homebridge-openhab2-complete/issues/87

phuongpham commented 3 years ago

Seems like it works after upgrading node-red-contrib-openhab2 to 1.1.8