tuya / tuya-iot-python-sdk

Tuya IoT Python SDK for Tuya Open API.
MIT License
130 stars 49 forks source link

code: 1004 sign invalid #18

Open vwt12eh8 opened 3 years ago

vwt12eh8 commented 3 years ago

I get an error with the following code. Is there a workaround?

from tuya_iot import TuyaOpenAPI, AuthType

api = TuyaOpenAPI("https://openapi.tuyaus.com", "<id>", "<secret>", AuthType.SMART_HOME)
res = api.connect("<user>", "<pass>", "<country>", "smartlife")
{"code": 1004, "msg": "sign invalid", "success": false, "t": ***}

tuya-iot-py-sdk version is 0.5.0