joe-ng / homebridge-dyson-link

MIT License
207 stars 40 forks source link

Homebridge UI Wizard fills in Country field incorrectly #136

Open pedantic79 opened 3 years ago

pedantic79 commented 3 years ago

I just setup the plugin via Homebridge UI. The wizard to fill in the config.json, filled in "United States" for the country instead of "US". This caused the plugin to give this error:

TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
    at new ClientRequest (_http_client.js:151:13)
    at Object.request (https.js:313:10)
    at DysonPlatform.getDevicesFromAccount (/homebridge/node_modules/homebridge-dyson-link/index.js:170:25)
    at HomebridgeAPI.<anonymous> (/homebridge/node_modules/homebridge-dyson-link/index.js:49:26)
    at HomebridgeAPI.emit (events.js:327:22)
    at HomebridgeAPI.signalFinished (/usr/local/lib/node_modules/homebridge/src/api.ts:275:10)
    at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:173:14)

Changing to "US" manually fixed the problem.