TuyaAPI / cli

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

Finished Step 5 but still encounter "fetching that device" error, Unable to Click **New Authorization #117

Closed robinzhx closed 3 years ago

robinzhx commented 3 years ago

I tried to run DEBUG output and it seems like the issue is related to Step 5. I did subscribed all 5 API Products but unable to refresh the Authorization Key since I can't find there is any refresh button for **New Authorization.

[ Error: you don't have access to this API 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: you don't have access to this API 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: you don't have access to this API 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: you don't have access to this API 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) ]

robinzhx commented 3 years ago

It leads to the issue with the frequent update UI of the tuya api site. I gonna make some info to update document.