Dear all,
I am trying to stream results from k6 running locally to the cloud. I have created an api token and a project in my cloud account.
I add the following to my script
ext: {
loadimpact: {
projectID: <redacted>,
// Test runs with the same name groups test runs together
name: "BDDS"
}
}
I seem to login successfully
$ k6 login cloud --token <redacted>
Logged in successfully, token saved in C:\Users\osa0011\AppData\Roaming\loadimpact\k6\config.json
I then try the following
HTTPS_PROXY=http://osa0002:XXX@proxylb.internal.epo.org:8080 K6_CLOUD_TOKEN=<redacted> k6 run --out cloud -e ENVIRONMENT=test main.js
I get the following error:
WARN[0000] Error from API server error="listen tcp 127.0.0.1:6565: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."
Init [--------------------------------------] Starting outputs
default [--------------------------------------]
ERRO[0001] (400/E5) Authentication error - could not query matching resource. Is the token and/or project_id correct?
The token and project id both seem to be correct.