Hi,
We are trying to run a load test using k6 from Codefresh and are getting a Forbidden error with error code 1000
k6 version - 0.39
We tried a simple test as documented at Running k6 and that worked fine.
While trying a HTTP GET call to our server using mutual authentication we are getting the forbidden error
k6 run details as below -
data_received..............: 35 kB 3.2 kB/s
data_sent..................: 1.2 kB 110 B/s
http_req_blocked...........: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
http_req_connecting........: avg=862.43µs min=748.74µs med=876.67µs max=1.03ms p(90)=972.86µs p(95)=1ms
http_req_duration..........: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
http_req_failed............: 100.00% ✓ 10 ✗ 0
http_req_receiving.........: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
http_req_sending...........: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
http_req_tls_handshaking...: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
http_req_waiting...........: avg=0s min=0s med=0s max=0s p(90)=0s p(95)=0s
http_reqs..................: 10 0.908904/s
iteration_duration.........: avg=3.7ms min=2.38ms med=2.71ms max=12.81ms p(90)=4.15ms p(95)=8.48ms
iterations.................: 10 0.908904/s
vus........................: 5 min=5 max=5
vus_max....................: 5 min=5 max=5
Console log details as below
(server referred as https://host:port/test in the details) -
INFO[0011] {"remote_ip":"","remote_port":0,"url":"https://host:port/test","status":0,"status_text":"",
"proto":"","headers":{},"cookies":{},"body":null,"timings":{"duration":0,"blocked":0,"looking_up":0,"connecting":0.789388,"tls_handshaking":0,"sending":0,"waiting":0,"receiving":0},"tls_version":"","tls_cipher_suite":"","ocsp":{"produced_at":0,"this_update":0,"next_update":0,"revoked_at":0,"revocation_reason":"","status":""},**"error":"Forbidden","error_code":1000**,"request":{"method":"GET","url":"https://host:port/test","headers":{"User-Agent":["k6/0.39.0 (https://k6.io/)"]},"body":"","cookies":{}}} source=console
The same script runs fine from our local machines.
Is it possible to enable a trace to get more details about the issue
Any pointers on resolving the issue would be extremely helpful