TuyaAPI / cli

🔧 A CLI for Tuya devices
MIT License
261 stars 44 forks source link

There was an issue fetching that device. Make sure your account is linked and the ID is correct. #129

Closed de-salvatierra closed 3 years ago

de-salvatierra commented 3 years ago

[ Error: sign invalid
      at OpenAPI._client.got_1.default.extend.hooks.afterResponse.response (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/@tuyapi/openapi/dist/api.js:74:31)
      at EventEmitter.emitter.on (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/got/dist/source/as-promise.js:87:38)
      at process._tickCallback (internal/process/next_tick.js:68:7),
  Error: sign invalid
      at OpenAPI._client.got_1.default.extend.hooks.afterResponse.response (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/@tuyapi/openapi/dist/api.js:74:31)
      at EventEmitter.emitter.on (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/got/dist/source/as-promise.js:87:38)
      at process._tickCallback (internal/process/next_tick.js:68:7),
  Error: sign invalid
      at OpenAPI._client.got_1.default.extend.hooks.afterResponse.response (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/@tuyapi/openapi/dist/api.js:74:31)
      at EventEmitter.emitter.on (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/got/dist/source/as-promise.js:87:38)
      at process._tickCallback (internal/process/next_tick.js:68:7),
  Error: sign invalid
      at OpenAPI._client.got_1.default.extend.hooks.afterResponse.response (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/@tuyapi/openapi/dist/api.js:74:31)
      at EventEmitter.emitter.on (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/got/dist/source/as-promise.js:87:38)
      at process._tickCallback (internal/process/next_tick.js:68:7) ]```
thx
de-salvatierra commented 3 years ago

To better secure your cloud development, Tuya will upgrade the signature algorithm. Projects created after June 30, 2021 are subject to signature verification with the new algorithm

de-salvatierra commented 3 years ago

https://developer.tuya.com/en/docs/iot/singnature?id=Ka43a5mtx1gsc

codetheweb commented 3 years ago

Fixed in 1.17.0.

See: https://github.com/codetheweb/tuyapi/issues/492