tuyapi: No permissions. This API is not subscribed

I have the same issue as in this, except that my output is like this:

✖ Device(s) failed to be registered!
Error: No permissions. This API is not subscribed.
    at OpenAPI._client.got_1.default.extend.hooks.afterResponse.response (/usr/local/lib/node_modules/@tuyapi/cli/node_modules/@tuyapi/link/node_modules/@tuyapi/openapi/dist/api.js:68: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)

I tried this solution: but that didnt help either. I followed all the steps in the setup instructions. I am trying to run this off a raspberry pi, is that the problem?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 24 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Looks like another update to the instructions may be required, I also needed to follow the instructions from this comment:

https://github.com/codetheweb/tuyapi/issues/475#issuecomment-858373769

I was having the same issue despite being certain I followed the Setup guide. I started randomly adding other relevant APIs to my Cloud project, and it seems like either the ‘Smart Home Family Management’ or ‘Authorization’ API was needed for everything to work.

I have the same issue 😕 …any idea? I used the guide.

1 2 3

@cj922 mind making a PR for that? 😃

Done! https://github.com/codetheweb/tuyapi/pull/491

Looks like another update to the instructions may be required, I also needed to follow the instructions from this comment:

https://github.com/codetheweb/tuyapi/issues/475#issuecomment-858373769

I was having issues as well until following the referenced comment - copied here in list form:

  • Cloud > Projects> “MyProject” > API > “Go to authorize”
  • “Select API” > click subscribe on “Smart Home Devices Management” in the dropdown
  • Click subscribe again
  • Click “basic edition” and “buy now” (basic edition is free).
  • Check if the “Smart Home Devices Management” API is listed under Cloud>Projects>“MyProject”>API
  • If not, click “New Authorization” and select it