grafana/k6

Unable to set up proxy

Open

Aperta il 8 lug 2022

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)Go (30.564 star) (1537 fork)batch import
area: browserbrowser: user requestbuggood first issuehacktoberfesttriage

Descrizione

As the title suggests I am unable to initiate the xk6-browser using a proxy. I am aware that the README is a bit wrong on the way it defines the proxy, because proxy support through variables is still on TODO.

https://github.com/grafana/xk6-browser/blob/main/common/connection.go#L146

So currently the proxy value is in theory taken from the environment variables.

However when exporting them, a proxy is still not used. For example:

export http_proxy='http://proxy.net:43' export https_proxy='http://proxy.net:43' export HTTP_PROXY='http://proxy.net:43' export HTTPS_PROXY='http://proxy.net:43'

Is there any workaround for this issue?

Guida contributor