tinytuya: Error from Tuya server: permission deny
Hi, after inputing client id, secret etc i got error Error from Tuya server: permission deny
Is there any way to see what exactly go wrong? All services is added to device on the iot cloud web site.
I subscribed to trial version
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 18 (7 by maintainers)
Commits related to this issue
- Add new region support to wizard #66 — committed to jasonacox/tinytuya by jasonacox 3 years ago
- v1.2.10 Wizard Update #66 #75 — committed to jasonacox/tinytuya by jasonacox 3 years ago
Hi @skorphil I understand your frustration. If you are still interested in troubleshooting this, I have some ideas.
No, key is that you want to use the region where your tuya devices are registered. Which region do they show up in on the Tuya Developer (iot.tuya.com) portal? Here is what my account shows:
The TinyTuya wizard basically does a sequence of
curlactions against the Tuya API to get the local key for all of your devices. You can simulate this in the Tuya iot portal:Here is what we do to get the full list:
Notice the region that is selected. This will match the us, eu, cn, in that the wizard asks and will show up in the
curlstatement as the hostname (e.g. for the us,curl --request GET "https://openapi.tuyaus.com/v1.0/devices…)