Open ffadiuvat opened 2 years ago
I have the same problem, Tuya support was of not much help. Did you manage to find out the answer?
I had the same problem. It was giving me a 1106 permission deny
error.
I found that if I removed /iot-03
from the path it works.
I have found same error like it always return an sign invalid error.
const response = await tuya.request({ method: 'POST', path: '/v1.0/iot-03/users/login', headers: { // 'Content-Type': 'application/json', 'client_id': tuyaClientId, 'sign': signature, 'sign_method': 'HMAC-SHA256', 't': t }, body: body, });
I tried to send a api call witht his sdk, i provide correcte secret and access key. but it always return an sign invalid error. Here the example of the code