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

Trouble 1013 #95

Closed
vikts83 opened this issue Aug 24, 2021 · 4 comments
Closed

Trouble 1013 #95

vikts83 opened this issue Aug 24, 2021 · 4 comments
Labels
pending To be processed

Comments

@vikts83
Copy link

vikts83 commented Aug 24, 2021

Hello

Have this trouble.
I have 5 smart thermostat at the app.

Using tuyaSmart on iPhone

config.json
{
"options": {
"username": "xxxxxxxxxxxx",
"password": "xxxxxxxxxxxxxxx",
"accessId": "xxxxxxxxxxxxxxxxxxxxx",
"accessKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
"lang": "en",
"endPoint": "https://openapi.tuyaeu.com",
"projectType": "2",
"appSchema": "tuyaSmart",
"countryCode": 372,
"debug": true
},
"name": "TuyaPlatform",
"platform": "TuyaPlatform"
}

Log

TuyaOpenAPI response: {"code":1013,"msg":"request time is invalid","success":false,"t":1629830233783} 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 (/homebridge/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:48:11)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at TuyaSHOpenAPI.request (/homebridge/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:144:7)
at TuyaSHOpenAPI.getDevices (/homebridge/node_modules/homebridge-tuya-platform/lib/tuyashopenapi.js:62:15)
at TuyaPlatform.initTuyaSDK (/homebridge/node_modules/homebridge-tuya-platform/index.js:90:19)
Attention⚠️ ⚠️ ⚠️ ! You get an error!
Failed to get device information. Please check if the config.json is correct.

@github-actions
Copy link

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

@Hanh94
Copy link
Contributor

Hanh94 commented Aug 26, 2021

Hi @vikts83 ,
/v1.0/iot-01/associated-users/actions/authorized-login
Since this interface was released in the whole region, we will use openapi.tuyacn.com by default. Which may cause the time verification between your device and CN server to fail. we have noticed this problem and will optimize it in the next version.

@Hanh94 Hanh94 added the pending To be processed label Aug 26, 2021
@microcreators
Copy link

Same issue here. Just worth noting that changing Availability Zone and endpoint to China doesn't help much. Thanks for reviewing it.

@Hanh94
Copy link
Contributor

Hanh94 commented Nov 3, 2021

Hi guys ,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
pending To be processed
Projects
None yet
Development

No branches or pull requests

3 participants