Error "code" 2007 #156
themabrennan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been trying to set up my devices. I have everything set up and working in the Tuya IoT Platform. I was utilizing a different Tuya Plugin for Homebridge/HOOBS, where I did have one of three lights working. The developer suggested that I use your plugin for the capabilities. However, I have NOT been able to get the plugin working.
11/7/2021, 2:56:35 PMTuya Web BridgeInitializing HAP-NodeJS v0.9.4...⚠️ ⚠️ ⚠️ ! You get an error!
11/7/2021, 2:56:36 PMTuya Web BridgeLoaded plugin 'homebridge-tuya-platform-custom-th-version'
11/7/2021, 2:56:36 PMTuya Web BridgeRegistering platform 'homebridge-tuya-platform-custom-th-version.TuyaPlatform'
11/7/2021, 2:56:36 PMTuya Web BridgeLoading 1 platforms...
11/7/2021, 2:56:36 PMTuya Web BridgeInitializing TuyaPlatform...
11/7/2021, 2:56:36 PMTuya Web BridgeTuyaOpenAPI request: method = post, endpoint = https://openapi.tuyacn.com, path = /v1.0/iot-01/associated-users/actions/authorized-login, params = null, body = {"country_code":1,"username":"xxxxxxxxxxxx","password":"xxxxxxxxxxxxxxxx","schema":"tuyaSmart"}, headers = {"t":"1636318596270","client_id":"xxxxxxxxxxxxxxxxxx","nonce":"322327c0-400d-11ec-9474-9ba5a237e8da","Signature-Headers":"client_id","sign":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","sign_method":"HMAC-SHA256","access_token":"","lang":"en","dev_lang":"javascript","dev_channel":"homebridge","devVersion":"1.4.0"}
11/7/2021, 2:56:36 PMTuya Web BridgePreparing Advertiser for 'Tuya Web Bridge 7A31' using ciao backend!
11/7/2021, 2:56:36 PMTuya Web BridgeStarting to advertise 'Tuya Web Bridge 7A31' using ciao backend!
11/7/2021, 2:56:36 PMTuya Web BridgeBridge is running on port 51866.
11/7/2021, 2:56:36 PMTuya Web BridgeTuyaOpenAPI response: {"code":2007,"msg":"your ip(xxx.xxx.xxx.xx) cross-region access is not allowed","success":false,"t":1636318596872} path = /v1.0/iot-01/associated-users/actions/authorized-login
11/7/2021, 2:56:36 PMTuya Web BridgeTypeError: Cannot destructure property 'access_token' of 'res.result' as it is undefined.
11/7/2021, 2:56:36 PMTuya Web Bridgeat processTicksAndRejections (internal/process/task_queues.js:95:5)
11/7/2021, 2:56:37 PMTuya Web BridgeAttention
11/7/2021, 2:56:37 PMTuya Web BridgeFailed to get device information. Please check if the config.json is correct.
Beta Was this translation helpful? Give feedback.
All reactions