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

http.batch invalid method error #295

Closed
artych opened this issue Aug 18, 2017 · 0 comments · Fixed by #297
Closed

http.batch invalid method error #295

artych opened this issue Aug 18, 2017 · 0 comments · Fixed by #297

Comments

@artych
Copy link

artych commented Aug 18, 2017

Running the script:

import { group } from 'k6';
import http from 'k6/http';

export default function() {

  group("page_1", function() {
    http.batch([{
      url: "https://loadimpact.com/",
      method: "GET"
    }]);
  });
}

I get error:

ERRO[0032] GoError: net/http: invalid method "HTTPS://LOADIMPACT.COM/"

I wonder if arguments can be mixed up, and yes, after swapping the properties like:

    http.batch([{
      method: "GET",
      url: "https://loadimpact.com/"
    }]);

it works good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant