-
Notifications
You must be signed in to change notification settings - Fork 189
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
Access key/token improperly parsed #29
Comments
Hi @cgarrovillo, Please refer to this comment and this comment, That might solve your problem |
|
Hi @cgarrovillo , If you are already following the Tuya IoT Platform Configuration Guide Using Smart Home PaaS to set up step by step. I noticed in the config file that the "countryCode" is "123456". Verify that your "endPoint "is the US. This countryCode should be "1".Please try it again. |
It is actually 1, I just wanted to "anonymize" the data before posting it here 😄 |
General permission issues can be resolved in Tuya IoT Platform Configuration Guide Using Smart Home PaaS , Please carefully follow the steps in the document configuration, and get the corresponding values to configure in the config.json, do not need to change the format in the config.json |
Account Permissions: Please check this. |
You guys keep referring to permissions, I don't see how this is a permissions issue at all. None of the error messages (that are unhandled btw) relate to missing or invalid information that I configure, so I assume this is a programming issue. How is Please look into the issue by reading the exceptions thrown, rather than assuming it is a user configuration error. |
Hi @rikray02 ,sorry for the bad experience. |
|
Hi @cgarrovillo ,Sorry for the bad experience. /v1.0/iot-01/associated-users/actions/authorized-login . This interface gets access_token, so it is correct that the access_token in the sign of this interface is "". I've noticed that you're having trouble with the access_token request, and you get this error ‘access_token’ of ‘res.result’ as it is undefined when you request it. This is when you call this interface, you pass an invalid argument. I see that your project creation time is in line with the requirements, and I believe that you are correct when config.json. There may be something wrong with the following link: |
Hi Hanh94, Thanks again for your help. |
If you have exceeded the limit of creating cloud project for free account (Only two projects), please create a new Tuya IoT Platform account and create the cloud project again. |
Yeah, it's pretty terrible how this issue was handled. Anyway this is how you can fix it on your setup.
Restart homebridge. Enjoy. @rikray02 , see above |
Just saw this. regarding editing the this.tokenInfo, which line did you edit it, since there are a few references to this in the same code. I tried changing this in the constructor, and ended up with "Token Expired" error when it tried to fetch the device list. |
It should be the first instance of If you are referring to the
This also is the first instance of this code, right after the previously mentioned code block. This code block on my text editor was on line 34. |
I opened issue 41 and i attempted this process and this didn't work for me. It fixed the auth issue, but none of the devices are populating |
Hi guys,,Sorry for the late reply. |
Let me know how you go Hanh, the emails I sent through have some visual aides if you need as well - here to help |
Hi guys, I will therefore have a look at the ticket 41 side. Too bad it is so complicated to operate. |
Been hearing good things about tp-link's offerings so thats a better option actually |
|
Hi guys, Sorry for the bad experience. |
Hi guys, For a better login experience, in version 1.3.0, the login interface is published in all regions. Therefore, you can use the endPoint of any region to log in. After a successful login, the endPoint of the region where the account resides is returned to obtain device information. |
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. |
Hi, I have completely same issue, I just installed plug-in 1.4. I tried to fix the issue with code mentioned here however after some time when everything worked fine I got expired token issue. Any idea why doesn't work ? |
Hi, I solved it. The tricky point is the application account has to be registered only with region, which is supported by Tuya Cloud, which are listed at the wiki home down. I must to delete the app account and create new with new email with different region, I used Germany, then it worked. |
plugin 1.1.7
node 14.17
After proper setup following this tutorial: https://developer.tuya.com/en/docs/iot/Tuya_Homebridge_Plugin?id=Kamcldj76lhzt
accessKey
in config.json seems to be parsed incorrectly:when
accessKey
is changed toaccessToken
, a different error occurs:The text was updated successfully, but these errors were encountered: