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

Result shows 0 data #497

Open
jorgevrgs opened this issue Sep 25, 2023 · 3 comments
Open

Result shows 0 data #497

jorgevrgs opened this issue Sep 25, 2023 · 3 comments

Comments

@jorgevrgs
Copy link

I've implemented a simple hello world server using Fastify v4.22.2 and tried several times to run autocannon getting data 0:

❯ autocannon --version
autocannon v7.12.0
node v18.17.1

Running:

autocannon -c 100 -d 5 -p 10 <URL>

Results:

image

However using oha and ab I got data:

oha -n 100 -c10 -z 5s <URL>

Results:

image

Is there any other useful information I can provide?

@JaoodxD
Copy link

JaoodxD commented Oct 4, 2023

Just faced similar issue.
I started test server on wsl2 and run autocannon against it.
As a result of debugging I find out that my wsl had IPv6 url.
If you run autocannon with --debug key you'll find connection refused errors.
Somehow node version affects server oportunity to fallback localhost to IPv6 [::1].
Using newer version of node (20.6.1 in my case) just fixed it.

@ubikapps
Copy link

I had this using localhost. I just changed to 127.0.0.1 and it fixed it

@casantosmu
Copy link
Contributor

Can you try upgrading to the latest Node.js version (20) to see if the issue is resolved?

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

4 participants