tuyapi icon indicating copy to clipboard operation
tuyapi copied to clipboard

Error: GET_TOKEN_FAILED 2007, your ip(120.84.*.246) cross-region access is not allowed

Open kairui1108 opened this issue 3 years ago • 2 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Debug Output Post the output of your program/app/script when run with the DEBUG environment variable set to *. Example: DEBUG=* node test.js. Copy the output and paste it below (in between the code fences):


Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. macOS]
  • OS Version [e.g. 22]
  • Node Version [output of node -v]

Additional context Add any other context about the problem here.

kairui1108 avatar Feb 08 '22 07:02 kairui1108

Can you please fill out the above template?

codetheweb avatar Feb 08 '22 23:02 codetheweb

I'm too getting this error

Error: GET_TOKEN_FAILED 2007
✖ Device(s) failed to be registered!
Error: GET_TOKEN_FAILED 2007, your ip(112.135.209.226) cross-region access is not allowed
    at TuyaOpenApiClient.<anonymous> (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/@tuyapi/cli/node_modules/@tuya/tuya-connector-nodejs/lib/core/client.js:123:35)
    at step (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/@tuyapi/cli/node_modules/@tuya/tuya-connector-nodejs/lib/core/client.js:52:23)
    at Object.next (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/@tuyapi/cli/node_modules/@tuya/tuya-connector-nodejs/lib/core/client.js:33:53)
    at fulfilled (/home/user/.nvm/versions/node/v16.13.1/lib/node_modules/@tuyapi/cli/node_modules/@tuya/tuya-connector-nodejs/lib/core/client.js:24:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

tmkasun avatar Mar 19 '22 17:03 tmkasun