Code 2406 skill id invalid
See original GitHub issueHow to solve:
TuyaOpenAPI response: {“code”:2406,“msg”:“skill id invalid”,“success”:false,“t”:1622204992541} path = /v1.0/iot-01/associated-users/actions/authorized-login
(node:28565) UnhandledPromiseRejectionWarning: TypeError: Cannot destructure property ‘access_token’ of ‘res.result’ as it is undefined.
at TuyaSHOpenAPI._refreshAccessTokenIfNeed (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:45:10)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at TuyaSHOpenAPI.request (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:128:5)
at TuyaSHOpenAPI.getDevices (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:58:15)
at TuyaPlatform.initTuyaSDK (/usr/local/lib/node_modules/homebridge-tuya-platform/index.js:76:17)
(Use node --trace-warnings ...
to show where the warning was created)
(node:28565) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:28565) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
using:
tuyaSmart europe
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (7 by maintainers)
This seems like the most difficult possible way to do things. Is there no other way?
Hi guys, Since we haven’t received your reply for a long time, we think our latest version should have solved your problem. We will close this issue first. If there is any problem, you can contact us at any time.