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

fix(http): Return an error early if URL is not valid #695

Merged
merged 1 commit into from
Apr 27, 2019

Conversation

hassy
Copy link
Member

@hassy hassy commented Apr 27, 2019

Fixes #512

The solution runs a simple sanity check on the URL after all templating has been done and custom functions that may re-write the URL have been run. See the bug report for reasons why this specific error isn't caught by existing error-handling code.

Always passing the callback to request.js which is another possible solution has the drawback of request.js loading the entire response into memory (to provide as an argument to the callback function), which is problematic with many concurrent requests which return large response payloads.

@hassy hassy merged commit b5d9fa0 into artilleryio:master Apr 27, 2019
@hassy hassy deleted the fix/http-invalid-url branch April 27, 2019 10:16
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.

Invalid URL or request options will fail silently and hang request
1 participant