-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
timeout options doesn't work as expected #58
Comments
Are you using the browser or Node.js version? Can you try the latest version? It has a lot of improvements in the networking code. |
The timeout applies to every request, instead of the function as a whole. Line 160 in 7c155f2
|
Same problem here, using a timeout of So I'd say either use I can make a pull request for either of these solutions, if you're OK with one of the two ! |
I tried this line without internet access and after approximately 9 seconds later it return error "Error: Couldn't find your IP"
publicIp.v4({timeout:100}).then(value => console.log(value)).catch(err => console.log(err));
I was expecting it to error out within 100 milliseconds, not 9000 milliseconds.
Am I missing something?
The text was updated successfully, but these errors were encountered: