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

Error 1106 when trying to create cloud project thing with smarthomej/tuya binding #598

Open
f1xxxer opened this issue Oct 30, 2024 · 0 comments

Comments

@f1xxxer
Copy link

f1xxxer commented Oct 30, 2024

hello, when trying to create the cloud project thing I always get 1106 "code":1106,"msg":"permission deny". I made sure that all the permissions were added in cloud project on https://platform.tuya.com website (right now I have added all 60 permissions), also made sure multiple times that I used username and password from my Smart Life App, that access id, secret and data center are correct, but no luck.

my openhab version is 4.2.2 and binding is 4.2.0

I have noticed in the trace that access_token header is always empty.

Here are my traces:

2024-10-30 18:59:34.168 [DEBUG] [g.tuya.internal.TuyaDiscoveryService] - bundle org.smarthomej.binding.tuya:4.2.0 (304)[org.smarthomej.binding.tuya.internal.TuyaDiscoveryService(394)] : Changed state from satisfied to active

2024-10-30 18:59:34.190 [TRACE] [ding.tuya.internal.cloud.TuyaOpenAPI] - Sending to 'https://openapi.tuyaeu.com/v1.0/iot-01/associated-users/actions/authorized-login': Method = {POST}, Headers = {Accept-Encoding: gzip, User-Agent: Jetty/9.4.54.v20240208, client_id: ******************, t: 1730311174189, Signature-Headers: client_id, sign_method: HMAC-SHA256, access_token: , sign: 45131CFF30B3E369305F0A705DF*****2E2726A3BC738753F8CC9AEE94D5ED, Content-Type: application/json}, Content = {{"username":"*********@gmail.com","password":"***************","country_code":31,"schema":"smartLife"}}

==> /var/log/openhab/events.log <==

2024-10-30 18:59:34.176 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:project:59e64d9ca9' changed from UNINITIALIZED (DISABLED) to INITIALIZING

2024-10-30 18:59:34.189 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tuya:project:59e64d9ca9' changed from INITIALIZING to UNKNOWN

==> /var/log/openhab/openhab.log <==

2024-10-30 18:59:34.343 [TRACE] [a.internal.cloud.TuyaContentListener] - Received from 'https://openapi.tuyaeu.com/v1.0/iot-01/associated-users/actions/authorized-login': Code = {200}, Headers = {Content-Type: application/json;charset=UTF-8, Content-Length: 112, Connection: keep-alive, Date: Wed, 30 Oct 2024 17:59:34 GMT, Access-Control-Allow-Credentials: true, Access-Control-Allow-Headers: , Access-Control-Allow-Headers: access_token,Content-Type, Access-Control-Allow-Methods: POST, Access-Control-Allow-Methods: OPTIONS, Access-Control-Allow-Methods: GET, Access-Control-Allow-Methods: DELETE, Access-Control-Allow-Methods: PUT, Access-Control-Allow-Origin: https://iot.tuya.com,https://platform.tuya.com, Gateway-Info: highway, Server: Sec, Strict-Transport-Security: max-age=31536000}, Content = {{"code":1106,"msg":"permission deny","success":false,"t":1730311174334,"tid":"b8653ab496e811ef894136243096d294"}}

2024-10-30 18:59:34.345 [WARN ] [ding.tuya.internal.cloud.TuyaOpenAPI] - Request failed: Result{timestamp=1730311174334, code=1106, msg=permission deny, success=false, result=null}, no token received
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