Page 1 of 1

Tuya MiniApp IDE behind corporate firewall

Posted: 2025年 Aug 4日 18:17
by yakimts
  • Tuya MiniApp IDE version information: 0.9.2 for windows, nodejs 23.11.1
  • Log information: ERROR Error: self signed certificate in certificate chain
  • Problem description (reproduction steps):

I'm using Tuya Miniapp IDE behind corporate firewall. During IDE start I get error messages in log c:\Users\xxx\AppData\Roaming\tuya-ark-ide\logs\2025-08-04-debug.log :
...
... ERROR Error: self signed certificate in certificate chain
...

I can not login, select project and use IDE.

If I setup environment variable NODE_TLS_REJECT_UNAUTHORIZED="0", I am able to login and select project and bind virtual device. But I get error in Message Log in Device Tools:
[current time] [MQTT] Connect Fail self signed certificate in certificate chain

I tried to use nodejs environment variables NODE_EXTRA_CA_CERTS="mycafile" NODE_OPTIONS="--use-system-ca" and SSL_CERT_FILE="mycafile" NODE_OPTIONS="--use-openssl-ca". It looks like Tuya Miniapp IDE ignores these environment variables, while npm works fine.

Do you have any suggestions how can I set up CA or trusted certificates behind corporate firewall?


Re: Tuya MiniApp IDE behind corporate firewall

Posted: 2025年 Aug 5日 09:28
by sansan

Please, click the feedback button which in the problem tab.

https://developer.tuya.com/en/miniapp/d ... s/feedback


Re: Tuya MiniApp IDE behind corporate firewall

Posted: 2025年 Aug 5日 13:58
by yakimts

I started Tuya MiniApp IDE with environment option NODE_TLS_REJECT_UNAUTHORIZED="0" and pressed feedback button. I got message that logs were uploded somewhere...


Re: Tuya MiniApp IDE behind corporate firewall

Posted: 2025年 Aug 5日 15:45
by sansan

Try accessing https://miniapp-ark-ide.tuyaeu.com/switch in system's browser.
Normally, it will return a JSON data.

{"query":{},"mpaas":false,"landebug":true,"dynamicUpdate":{"inner":{},"outside":{}},"autoUpdatePath":"https://airtake-public-data-1254153901. ... fullUpdate":[]}

Is it the same for you?


Re: Tuya MiniApp IDE behind corporate firewall

Posted: 2025年 Aug 5日 15:54
by yakimts

Request return response
{"query":{},"mpaas":false,"landebug":true,"dynamicUpdate":{"inner":{},"outside":{}},"autoUpdatePath":"https://airtake-public-data-1254153901. ... fullUpdate":[]}


Re: Tuya MiniApp IDE behind corporate firewall

Posted: 2025年 Aug 6日 12:57
by yakimts

I suggest that nodejs environmental variables affects Tuya MiniApp IDE. Am I right?
Is builtin MQTT client affected with nodejs environmental variables?