tuya/tuya-iot-python-sdk

code: 1004 sign invalid

vwt12eh8 opened this issue · 0 comments

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