Hi all,
I’d be glad to have some help on tracking down an issue I’m having with k6 + tls.
My arquitecture is as follows:
I’m running K6 from a machine that works with http but not with https.
the code is simple like:
this works
import http from 'k6/http';
import { check } from "k6";
export default function() {
let res = http.post("http://lab003:4318/v1/traces", JSON.stringify(payload), {
headers: {
"Content-Type": "application/json"
}});
console.log(res);
}
when using NLB’s endpoint + SSL it breaks
let res = http.post("https://<NLB DNS>:4318/v1/traces", JSON.stringify(payload), {
res output =
"error": "unexpected EOF",
"error_code": 1000,
and i’m running it as
k6 run --insecure-skip-tls-verify test.js
can anyone help me?
edit:
also worth mentioning that it works with python
import requests
requests.post("<NLB URL>", json=payload, verify=False)
edit2:
I’m using OS redhat 8.5
K6 version v0.40.0
regards,
Carlos.