502 Bad gateway K6 studio (self-signed certificate in certificate chain

Hi everyone,

I just started with K6-studio (version 1.0.2), installed on Windows 10.
Recording an app on the internet looks fine but trying an internal resulting in


502 bad gateway (certificate verify failed: self-signed ceriticate in certificate chain.

If I look at the response headers

Could this error due to the company proxy? I use K6 studio in regular mode.
Any idea how to solve this?

Kind regards

Patrick Graas

Hi @pgmhjp,

If your network is passing through a proxy, you will need to configure k6 Studio to use those same proxy settings so a connection can be established. You can see your proxy settings on Windows by going to “Settings” > “Network & Internet” > “Proxy”.

In k6 Studio, you will need to change your Proxy mode to upstream and point it to the proxy your network is using. In some cases, you may also be required to attach a certificate so a trusted connection can be established.

Let us know if you need additional assistance.

Hi Cristiano,

Thanks for your quick response. I tried with your suggestion but still the same result.
See below error’s. If you need more let me know.
Kind regards Patrick

k6 studio log
[2025-04-08 11:33:51.351] [error] [11:27:44.319] Unhandled error in task.
[2025-04-08 11:33:51.353] [error] Traceback (most recent call last):
[2025-04-08 11:33:51.354] [error] File “asyncio\events.py”, line 80, in _run
[2025-04-08 11:33:51.355] [error] File “asyncio\proactor_events.py”, line 162, in _call_connection_lost
[2025-04-08 11:33:51.356] [error] ConnectionResetError: [WinError 10054] De externe host heeft een verbinding verbroken


Hi Cristiano,

It looks like its working. The certificate with the chain did the trick.
Thanks again

Kind regards Patrick