TuyaAPI / cli

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

4001 "You don't have access to this API" , "There was an issue fetching that device. Make sure your account is linked and the ID is correct." #120

Closed hamrasan closed 3 years ago

hamrasan commented 3 years ago

Hello while connection to API it write this error. { "code": 4001, "msg": "you don't have access to this API", "success": false, "t": 1617547340506 }

it is written in tuya cloud -> API explorer -> Get device details also in Postman in request GET > get device information in terminal too

If I start in terminal *DEBUG= tuya-cli wizard** and after login, it write me that: [ Error: you don't have access to this API at OpenAPI._client.got_1.default.extend.hooks.afterResponse (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/@tuyapi/openapi/dist/api.js:74:31) at EventEmitter. (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/got/dist/source/as-promise.js:87:38) at processTicksAndRejections (node:internal/process/task_queues:94:5), Error: you don't have access to this API at OpenAPI._client.got_1.default.extend.hooks.afterResponse (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/@tuyapi/openapi/dist/api.js:74:31) at EventEmitter. (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/got/dist/source/as-promise.js:87:38) at processTicksAndRejections (node:internal/process/task_queues:94:5), Error: you don't have access to this API at OpenAPI._client.got_1.default.extend.hooks.afterResponse (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/@tuyapi/openapi/dist/api.js:74:31) at EventEmitter. (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/got/dist/source/as-promise.js:87:38) at processTicksAndRejections (node:internal/process/task_queues:94:5), Error: you don't have access to this API at OpenAPI._client.got_1.default.extend.hooks.afterResponse (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/@tuyapi/openapi/dist/api.js:74:31) at EventEmitter. (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/got/dist/source/as-promise.js:87:38) at processTicksAndRejections (node:internal/process/task_queues:94:5) ] There was an issue fetching that device. Make sure your account is linked and the ID is correct.