Closed umonaca closed 2 years ago
https://github.com/tuya/tuya-iot-python-sdk/blob/83f1e999d75ef87b2170ffbbb239ca8651dab0c3/tuya_iot/openapi.py#L274
Unless your system has a 2xx status code for invalid token, this will never be reached because there is another return None statement above.
return None
Well, I have double checked that your backend system do respond HTTP 200 OK even if the response shows error. Your company's system is weird.
https://github.com/tuya/tuya-iot-python-sdk/blob/83f1e999d75ef87b2170ffbbb239ca8651dab0c3/tuya_iot/openapi.py#L274
Unless your system has a 2xx status code for invalid token, this will never be reached because there is another
return None
statement above.