grafana/k6

Unable to set up proxy

已关闭

#4,432 创建于 2022年7月8日

 (6 条评论) (0 个反应) (0 位负责人)Go (1,537 个派生)batch import
area: browserbrowser: user requestbuggood first issuehacktoberfesttriage

仓库指标

星标
 (30,564 个星标)
PR 合并指标
 (平均合并 11天 15小时) (30 天内合并 47 个 PR)

描述

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?

贡献者指南