Tuya MiniApp IDE behind corporate firewall

Panel mini-program development related product technical discussions, including panel mini-programs, intelligent mini-programs, React Native, Ray cross-platform framework, Panel SDK, WeChat mini-programs, mini-program development tools (IDE), and other related development technologies.


Post Reply
yakimts
Posts: 5

  • 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?

sansan
Posts: 16

Re: Tuya MiniApp IDE behind corporate firewall

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

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

yakimts
Posts: 5

Re: Tuya MiniApp IDE behind corporate firewall

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...

sansan
Posts: 16

Re: Tuya MiniApp IDE behind corporate firewall

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?

yakimts
Posts: 5

Re: Tuya MiniApp IDE behind corporate firewall

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

yakimts
Posts: 5

Re: Tuya MiniApp IDE behind corporate firewall

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

Post Reply