question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FastHttpLocust gives error when using valid url.

See original GitHub issue

When using FastHttpLocust with an valid URL, the following error is emitted.

LocustError: Invalid host (`https://hostname/path`). The specified host string must be a base URL without a trailing slash.

The regex r"^https?://[^/]+$" in file locust/contrib/fasthttp.py seems to be wrong.

It maches https://hostname and not https://hostname/path error message warned about https://hostname/path/

Environment settings

  • OS: Windows 10
  • Python version: 2.7
  • Locust version: 0.13.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Lars-Kristiancommented, Jan 16, 2020

That is a great Name. 😉

0reactions
cyberwcommented, Jan 15, 2020

(btw, my name is also Lars 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python HTTP request failing with zlib.error: Error -5 while ...
I am trying to make a HTTP call here using fasthttp library in python. While running the get request as in below example...
Read more >
Increase performance with a faster HTTP client
Parses the JSON response to a dict called js in the response object. Marks the request as failed if the response was not...
Read more >
Use test_network_timeout_setting in locust With Examples ...
Learn how to use test_network_timeout_setting function in locust framework for your next python automation project with LambdaTest Automation Testing ...
Read more >
Locust - Read the Docs
Grouping requests to URLs with dynamic parameters . ... Locust has a neat HTML+JS user interface that shows relevant test details in ...
Read more >
Open source load testing tool review 2020 - Grafana k6
A colleague working with k6 suggested we'd add a tool built with Rust and ... of Locust - it is (as far as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found