-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
token expired (1010) #14
Comments
Relates to tuya#296 , is processing. |
following too! |
1.6.0-beta.14 should working now. @PrimaveraNL @1aranzant |
Currently running beta.13, homebridge doesn't see the update yet. |
beta.13 didn't solves the problem, the second token refresh failed I found. |
Looks stable :) Will update my reply if it ceases to work at one point. Thanks a lot! |
Bad news :/ Still the same issue even with v1.6.0-beta.14 |
thank you, beta 14 just installed, I will give a feedback soon |
Unfortunately not solved, hope this log can help.
|
I don't know why beta.14 works for me, I run the homebridge all night and see it success calles refresh token API 5 times. @ipa64 I need to show them this things:
Thanks for testing. |
beta.14 works here. This morning, accessories are still available after 14 hrs. Still running in debug mode. |
If you are working, then no need :) Thanks! Just need two API call logs as discribed before. |
Hope that what you asked: ` [10/27/2022, 11:27:25 AM] [@0x5e/homebridge-tuya-platform] TuyaOpenAPI response: path = /v1.0/iot-01/associated-users/actions/authorized-login, data = {"result":{"access_token":"9a1bab720b426e6ef968a2742d0543ea","expire_time":7200,"platform_url":"https://openapi.tuyaus.com","refresh_token":"d714e4d55c918bca5e199f10232cc5cd","uid":"az1664451251132ekqP5"},"success":true,"t":1666844844965,"tid":"a84308b455af11ed912596dbc75dca5a"} [36m[@0x5e/homebridge-tuya-platform]�[39m �[90mTuyaOpenAPI request: method = get, endpoint = https://openapi.tuyaus.com, path = /v1.0/token/d714e4d55c918bca5e199f10232cc5cd, params = undefined, body = null, headers = {"t":"1666851986236","client_id":"ft7hc7ye3hxe44cgpxxx","nonce":"47d6ecd2-653b-425c-8e04-6cba77421398","Signature-Headers":"client_id","sign":"XXXXXXXXXXXXXX","sign_method":"HMAC-SHA256","access_token":"9a1bab720b426e6ef968a2742d0543ea","lang":"en","dev_lang":"javascript","dev_channel":"homebridge","devVersion":"1.6.0-beta.14"}�[39m |
@ipa64 Yes that's what I need, I created tickets, waiting for Tuya reply. |
Thank you |
Hi @0x5e, I spent time to try to understand event sequences:
I have some questions related to
here the log: ... //-------------------------------------- //-------------------------------------- //---------------------------------------------------------------------------- //-------------------------------------- //-------------------------------------- //-------------------------------------- //-------------------------------------- //-------------------------------------- |
the token should expires after 7200 seconds, and I already advance 60 seconds to refresh the token. |
This morning I got an error: API subscription expired …. |
In my memory there's free plan and no need to pay, 25000 is not for personal users. We are all free users |
Free trial only works one time, one month |
Sorry to hear that, maybe tuya changes plan for newly created projects. I can't help with this and not familiar with Tuya Platform too. How about other people? I can still use API maybe because my account created long before, not sure. |
I remember quite vividly that it was mentioned that all was free for smart home users, but now I see that the 'IoT Core' is on a free trial. [edit] On Reddit, I read users that can still access their devices after the trial period. So I guess I'll see what happens two weeks from now... |
My ex colleague told me last month, at present API still can be used for free. After expiration you can apply for extend the expire date for free. apply every 6 month is acceptable for me, but if once a month will be too frequently. My account is the same as you said on reddit, I expired at 2022.8 but still avaliable now.... |
Hi @ipa64 , can you provide the latest token expired log? The server-side log was expired and cleared, they need the latest log, thanks.
@1aranzant If you have time, can you do the same? Please to this before open the homebridge log. |
`[10/31/2022, 3:10:53 PM] [Homebridge UI] Homebridge restart request received
[10/31/2022, 3:11:07 PM] Homebridge v1.5.1 (HAP v0.10.4) (Homebridge D7CB) is running on port 51518. |
OK, I will contact them tomorrow. |
Server side log says you have another login API call between "3:11:09 PM" and "5:10:11 PM" from hass, so the homebridge token expired (actually is invalid, not time expired). So, the tuya platform account can't be used in homebridge/homeassistant at the same time. That's the root cause. |
So… |
Over night, I do not touch anything.
In the morning, no accessories wil react to operation in Apple homekit app but they do react to Tuya app.
In the log there is an 'invalid token'. Is this some setting I need to change?
20221026T0920 log.txt
The text was updated successfully, but these errors were encountered: