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

error invalid URL #14

Open
xflihaibo opened this issue Jan 27, 2021 · 1 comment
Open

error invalid URL #14

xflihaibo opened this issue Jan 27, 2021 · 1 comment

Comments

@xflihaibo
Copy link
Contributor

node v10.15.3
wrk v4.1.0

err: { Error: Command failed: wrk -t2 -c1000 -d10s --latency http://localhost:3000
invalid URL:

at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:189:13)
at maybeClose (internal/child_process.js:970:16)
at Socket.stream.socket.on (internal/child_process.js:389:11)
at Socket.emit (events.js:189:13)
at Pipe._handle.close (net.js:597:12)

killed: false,
code: 1,
signal: null,
cmd: 'wrk -t2 -c1000 -d10s --latency http://localhost:3000' }
out: undefined

index.js
line 31 cmd += ' ' + opts.url;===>cmd += opts.url

@Rob-Page
Copy link

I found this to be due to the, "printLatency: true" parameter. This generates the --latency parameter in the cmd with two spaces after it, and before url. This causes the url to be detected as a blank space. If you remove the printLatency it should resolve the issue.

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

No branches or pull requests

2 participants