Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross Region access not allowed #574

Open
gogreenpower opened this issue Apr 10, 2022 · 0 comments
Open

Cross Region access not allowed #574

gogreenpower opened this issue Apr 10, 2022 · 0 comments

Comments

@gogreenpower
Copy link

Describe the bug
Following the guide results in an error:

✖ Device(s) failed to be registered! Error: your ip(XXX.XXX.XXX.XXX) cross-region access is not allowed 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)

To Reproduce

on step 7:

On the command line, run tuya-cli link --api-key --api-secret --schema <your schema/Channel ID> --ssid --password --region us. For the region parameter, choose the two-letter country code from us, eu, and cn that is geographically closest to you.

Expected behavior
My tuya device to be linked.

Debug Output
✖ Device(s) failed to be registered! Error: your ip(XXX.XXX.XXX.XXX) cross-region access is not allowed 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)


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

Desktop (please complete the following information):

  • OS: Raspberry Pi OS Lite
  • OS Version: Buster
  • Node Version: v10.24.1

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant