Skip to content
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

Issue with HEAD requests in 0.36.0? #2401

Closed
gygitlab opened this issue Feb 28, 2022 · 4 comments · Fixed by #2402
Closed

Issue with HEAD requests in 0.36.0? #2401

gygitlab opened this issue Feb 28, 2022 · 4 comments · Fixed by #2402
Labels
breaking change for PRs that need to be mentioned in the breaking changes section of the release notes bug high prio
Milestone

Comments

@gygitlab
Copy link

Brief summary

After upgrading to 0.36.0 we noticed that in one of our tests it started failing with no successful requests. Uniquely this was the only test that was sending HEAD requests (http.head).

Digging further we identified our nginx server was rejecting all requests vaguely with 400 errors. After switching back to 0.35.0 the issue was no longer happening suggesting this is an issue on the k6 side.

k6 version

0.36.0

OS

Ubuntu 18.04, Mac OS 12.2.1

Docker version and image (if applicable)

No response

Steps to reproduce the problem

  • Create a test sending HEAD requests, possibly against a standard nginx server
  • Notice that they fail with 400 errors

Expected behaviour

HEAD requests are successful

Actual behaviour

HEAD requests are being rejected with 400 errors

@gygitlab gygitlab added the bug label Feb 28, 2022
@mstoykov
Copy link
Collaborator

Hi @grantyoung I think this as in v0.36.0 we did refactor this code and it seems that we made http.head take body as second argument as all other helpers except http.get 🤔

Can you confirm that adding a null body fixes this for you?

@mstoykov mstoykov linked a pull request Feb 28, 2022 that will close this issue
@gygitlab
Copy link
Author

Hi @grantyoung I think this as in v0.36.0 we did refactor this code and it seems that we made http.head take body as second argument as all other helpers except http.get 🤔

Can you confirm that adding a null body fixes this for you?

It did indeed. It looks like you're going to revert though?

@na-- na-- added this to the v0.37.0 milestone Feb 28, 2022
@na--
Copy link
Member

na-- commented Feb 28, 2022

Sorry @grantyoung, this seems to be a bug I introduced with #2226 that the tests didn't catch as a regression 😞 We plan to release v0.37.0 in a couple of weeks and we'll fix (#2402) it in there.

@na-- na-- added breaking change for PRs that need to be mentioned in the breaking changes section of the release notes high prio labels Feb 28, 2022
@gygitlab
Copy link
Author

No problem at all @na--, thanks for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change for PRs that need to be mentioned in the breaking changes section of the release notes bug high prio
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants