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

Constantly getting the 2406 error code when setting it up #142

Closed
Jacko539 opened this issue Oct 29, 2021 · 2 comments
Closed

Constantly getting the 2406 error code when setting it up #142

Jacko539 opened this issue Oct 29, 2021 · 2 comments

Comments

@Jacko539
Copy link

I just can’t seem to get this set up. I have followed the steps and created a cloud project and I have linked this to my Smart Life app and can see my devices showing up on the website but I just can’t get them to show in Homebridge

hope the info below helps. Thanks

TuyaOpenAPI response: {"code":2406,"msg":"skill id invalid","success":false,"t":xxxxxx} 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 (C:\Users\AppData\Roaming\npm\node_modules\homebridge-tuya-platform\lib\tuyashopenapi.js:48:11)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at TuyaSHOpenAPI.request (C:\Users\AppData\Roaming\npm\node_modules\homebridge-tuya-platform\lib\tuyashopenapi.js:144:7)
    at TuyaSHOpenAPI.getDevices (C:\Users\AppData\Roaming\npm\node_modules\homebridge-tuya-platform\lib\tuyashopenapi.js:62:15)
    at TuyaPlatform.initTuyaSDK (C:\Users\AppData\Roaming\npm\node_modules\homebridge-tuya-platform\index.js:90:19)
Attention⚠️ ⚠️ ⚠️ ! You get an error!

   {
        "options": {
            "username": "xxxx",
            "password": "xxxxx",
            "accessId": "",
            "accessKey": "xxxx",
            "lang": "en",
            "endpoint": "https://openapi.tuyaeu.com",
            "projectType": "2",
            "appSchema": "smartlife",
            "countryCode": 44,
            "debug": true
        },
        "name": "TuyaPlatform",
        "platform": "TuyaPlatform"
    }
@github-actions
Copy link

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

@Hanh94
Copy link
Contributor

Hanh94 commented Nov 3, 2021

Please see #134 (comment)

@Hanh94 Hanh94 closed this as completed Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants