Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code 2406 - after running smoothly for ages #298

Closed
JaimeSLS opened this issue Oct 13, 2022 · 13 comments
Closed

Code 2406 - after running smoothly for ages #298

JaimeSLS opened this issue Oct 13, 2022 · 13 comments
Labels
bug Something isn't working

Comments

@JaimeSLS
Copy link

After using the plugins for ages now and everything running really smooth, I've got this error code now.
I checked all the connections… I cant the error here. Didnt change a thing.

Can smb help?

Cheers
Jaime

TuyaOpenAPI response: {"code":2406,"msg":"skill id invalid","success":false,"t":1665661964448,"tid":"8c8e356f4aed11eda7a4d2b5cc5248de"} path = /v1.0/iot-01/associated-users/actions/authorized-login
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:49:11)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at TuyaSHOpenAPI.request (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:145:7)
at TuyaSHOpenAPI.getDevices (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:63:15)
at TuyaPlatform.initTuyaSDK (/usr/local/lib/node_modules/homebridge-tuya-platform/index.js:90:19)
Attention⚠️ ⚠️ ⚠️ ! You get an error!

@JaimeSLS JaimeSLS added the bug Something isn't working label Oct 13, 2022
@github-actions
Copy link

Thank you for your feedback, we will solve this issue soon

@tne7laa
Copy link

tne7laa commented Oct 13, 2022

+1. Same here. Tried rebooting, restarting. Can login in Tuya API site. Hope it is something simple.
Plugin in Domoticz is working (https://github.com/Xenomes/Domoticz-TUYA-Plugin) luckily.

@MeesMaas
Copy link

I have the same.

@Azukovskij
Copy link

Azukovskij commented Oct 13, 2022

Tried different countries, VPN, nothing helped. Implemented workaround using different API Azukovskij@5eaa7e4 to retrieve access_token.

@mmaslen
Copy link

mmaslen commented Oct 14, 2022

Same error here

@aljorhythm
Copy link

Same here

@leo150
Copy link

leo150 commented Oct 14, 2022

I wish someone would implement a local tuya server. Window blinds to connect to a remote server is such a nonsense proven by this "suddenly" appeared error

@antonkrall
Copy link

Same issue here...today no longer working with homebridge

@boris-dimitrov
Copy link

Tried different countries, VPN, nothing helped. Implemented workaround using different API Azukovskij@5eaa7e4 to retrieve access_token.

Thank you for this workaround, it solved the problem for me.

@mmaslen
Copy link

mmaslen commented Oct 14, 2022

Tried different countries, VPN, nothing helped. Implemented workaround using different API Azukovskij@5eaa7e4 to retrieve access_token.

Thank you for this workaround, it solved the problem for me.

tried this workaround, only works with a subset of my devices - power points (yes), contact sensors (no)

@Azukovskij
Copy link

Tried different countries, VPN, nothing helped. Implemented workaround using different API Azukovskij@5eaa7e4 to retrieve access_token.

Thank you for this workaround, it solved the problem for me.

tried this workaround, only works with a subset of my devices - power points (yes), contact sensors (no)

@mmaslen , can you check debug logs for errors?

@JaimeSLS
Copy link
Author

I can agree the workaround from @Azukovskij is working fine.

Open ssh and navigate to
nano /usr/local/lib/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js

Edit the file as mentioned by @Azukovskij5eaa7e4

Restart homebridge.
Done

@bkessels
Copy link

Same problem here, tuya homebridge devices stopped working as of oct 13th.

The workaround from @Azukovskij fixed the problem for me.

Thanks for providing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants