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

Enhancement/url error #72

Merged
merged 2 commits into from
May 10, 2013
Merged

Conversation

krallin
Copy link
Contributor

@krallin krallin commented May 9, 2013

Fixes a misleading error when the host does not have an URL prefix, or is an invalid URL.

This is an issue because in requests, if the URL is invalid, we get an error before the pre_request hook runs. Which in this case, means that the on_pre_request method that fills request_meta does not run.

This creates a issue because then, we get a KeyError a couple of lines down the road, which does not indicate where the error is coming from (because start_time is not there).

This pull request re-raises the exceptions raised in the full_url method of request's Request object.

krallin added 2 commits May 9, 2013 13:52
URL errors are raised in requests before the pre_request hook fires, so
the on_pre_request method does not run, and we get a KeyError - which is
difficult to debug - a few lines down the road in:

	request_meta["response_time"] = ...
We're not sending any request anyway, so we need to report this.
heyman added a commit that referenced this pull request May 10, 2013
Better handling of invalid URL schemas
@heyman heyman merged commit 2e725c4 into locustio:master May 10, 2013
@heyman
Copy link
Member

heyman commented May 10, 2013

Thanks!

@krallin
Copy link
Contributor Author

krallin commented May 10, 2013

Thanks for merging!
On May 10, 2013 4:38 AM, "Jonatan Heyman" [email protected] wrote:

Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//pull/72#issuecomment-17715947
.

pancaprima pushed a commit to pancaprima/locust that referenced this pull request Aug 21, 2018
* add get team configuration

* change read json path
pancaprima pushed a commit to pancaprima/locust that referenced this pull request Aug 21, 2018
* add get team configuration

* change read json path
pancaprima pushed a commit to pancaprima/locust that referenced this pull request Aug 21, 2018
* add get team configuration

* change read json path
pancaprima added a commit to pancaprima/locust that referenced this pull request Aug 27, 2018
* Prima Update locust base version to 0.8.1 (locustio#70)

* find locustfile in the root directory

* Add ability to write out csv file data as part of command line run

* Update minimum version of gevent to fix locustio#598

* CSV flag, review comments

* Modify gevent wsgi and libev dependencies

* Sort all python imports

* Sort setup.py imports

* Standardize utf8 file coding declarations

* Bump version to 0.8a3 for another pre-release candidate

* Changed from deprecated method name

* Added test_suite argument to setup.py’s setup() method call

Not specifying the test_suite argument (using the default one) resulted in all tests being run multiple times (on Python 3.5). I haven’t looked in to why, since specifying “locust.test” should be correct, and fixes it.

* Suppress a warning that appears when running the tests on Python 3, that can cause tests (that depends on output to stderr) to fail.

* Apply gevent monkey patching before we import requests, to avoid infinite recursion error when doing SSL requests. Should fix locustio#655.

* Also patch threading when applying gevent monkey patch. Should fix locustio#569.

* Bumped version to 0.8a4

* Improved changelog

* Update main.py

Code comment and slightly more descriptive variable name

* More info about 0.8 to the Changelog

* Added some random examples that maybe could be useful to someone

* Bumped version to 0.8

* Upgrade pyzmq to latest stable version, and changed so that we do not pin the version (will make it easier to install Locust on Windows)

* Better installation instructions for Windows

* Bumped version to 0.8.1

* Erlangga Add team_configuration property (locustio#72)

* add get team configuration

* change read json path

* Rizal upload json file for team configuration (locustio#68)

* enabling json uploading

* fix modal ui in upload json

* enabling upload on json also

* modify ui a bit and avoid duplicated message

* unify the function

* bug fix team configuration function (locustio#88)

* change team_configuration function

* update configuration works
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 this pull request may close these issues.

2 participants