-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Thanks! |
Thanks for merging!
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.