Skip to content

K6 script is not sending requests/ Postman missing HTTP Headers #42

Answered by thim81
thim81 asked this question in Q&A
Discussion options

You must be logged in to vote

When you run K6, you can add a debug option

k6 run --http-debug="full k6-script.js

This will give you some insights into the actual HTTP requests being made.

Common issues

Common issues to review:

  • A header might be missing
  • The API URL/host is not present because some Postman Variables are not set

Missing headers

A missing HTTP header can have a big impact on how your API reacts to requests like authentication header or content-type, so it is important that HTTP headers are included in the K6 requests.

Some explanation:

  • Postman does not explicitly set common "headers", like content-type/accept (see github) when exporting the Postman collection.
  • postman-to-k6 takes the Postman collection…

Replies: 1 comment

Comment options

thim81
Mar 1, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by thim81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant