-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requests wrongly reusing headers from previous requests? #98
Comments
hi @kuikiker A lot of these things you mentioned often are linked to the Postman collection. |
Hi @thim81 , Find attached the Postman collection and the generated K6 script (where I only commented the setTimeout function which is not recognized). |
hi @kuikiker |
I have the same problem with |
Is this still happening? |
Yes it is |
hi @titanzx We tried to reproduce it with the sample provided but it looked OK. Do you have a simple example that you can share, that we can use for reproducing it? |
K6 Script
|
hi @titanzx I rebuild your postman collection but it seems to properly render the headers. In attachment, you can find the result. Can you point out what is incorrect? |
The request does not include an authorization header, but when the request is executed, the authorization is automatically added from previous request authorization header |
@titanzx and @kuikiker Found the cause and just released a new version 1.12.0 that should solve your issue. Can you update your project to use postman-to-k6 1.12.0 and verify if your issue is resolved? |
Hey @thim81, found this thread while investigating an issue in our executions where headers used on some requests were being incorrectly reused by later requests. Updating to version 1.12.0 fixed the issue for us. |
@daniel-gonzaleza thanks for the validation and confirmation. I ll close the issue, based on your feedback. If you experiencing other issues, please do report them so we can investigate and improve postman-to-k6 |
I converted a postman collection to K6 but I cannot properly run it. After analysing the HTTP requests with Fiddler I noticed that some requests are wrongly reusing headers from previous requests.
For instance:
Is there something I can do to avoid this behaviour?
I have tried to manually add the Content-Type: application/x-www-form-urlencoded header to the /login requests but the second request to the /login still fails due to the incorrect Authorization: bearer xxxxxxxx header, even though a 'basic' auth is defined for these requests.
Thanks
The text was updated successfully, but these errors were encountered: