bwp91 / homebridge-ewelink

Homebridge plugin to integrate eWeLink devices into HomeKit.
MIT License
384 stars 126 forks source link

The path of request is not allowed with appid #479

Closed luizjunior closed 1 year ago

luizjunior commented 1 year ago

Hi, I've registered as developer on Ewelink website, created a AppID and Secret than got this error:

[13/03/2023, 05:36:55] Homebridge v1.6.0 (HAP v0.11.0) (Homebridge) is running on port 51113. [13/03/2023, 05:36:58] [eWeLink] An error occurred during http login(). [13/03/2023, 05:36:58] [eWeLink] Disabling plugin. [13/03/2023, 05:36:58] [eWeLink] the path of request is not allowed with appid:MY_APP_ID_HERE [407] at default.login (file:///usr/local/lib/node_modules/homebridge-ewelink/lib/connection/http.js:120:15).

bwp91 commented 1 year ago

i think this is because the developer app ids that are given for free do not have access to the different home endpoints that the plugin uses

bwp91 commented 1 year ago

@luizjunior please let me know if you still want to use your own app id i can make changes to accommodate

luizjunior commented 1 year ago

@luizjunior please let me know if you still want to use your own app id i can make changes to accommodate

there's no need to worry about it right now, but will be nice if this can be fixed on a future update. For now you may hide or remove this option to avoid someone try to use their own APP ID.

cheers from Brazil!

jmlat commented 4 months ago

hello. i try to sent Http request to eWelink to. i try with "postman". after complete AppId and Secret, i got this: { "error": 407, "msg": "the path of request is not allowed with appid:ZhBJaZiC5...G7m9jY3Mnlq", "data": {} } I checked AppId and Secret, they are ok. so what is the problem here ? luizjunior How did you solved your problem ?