axios icon indicating copy to clipboard operation
axios copied to clipboard

Connection Timeout

Open ctaity opened this issue 2 months ago • 4 comments

Describe the issue

Hi, i need to measure how long it takes Axios to connect to service, becasue we are having timeouts, but i cant difference if the service takes too long, or if se services nerver accepts the connection.

Thanks

Example Code


Expected behavior

No response

Axios Version

No response

Adapter Version

No response

Browser

No response

Browser Version

No response

Node.js Version

No response

OS

No response

Additional Library Versions


Additional context/Screenshots


ctaity avatar Sep 13 '25 16:09 ctaity

To determine whether the issue is a slow server response or a problem with the connection itself, you can try using the Performance API to get detailed network request timings. You can refer to the provided link for more details. Performance API

capykyo avatar Sep 14 '25 02:09 capykyo

i would like to be able to do this configuration: connectionTimeout: 2_000 and timeout:50_000, if the servers attend me, i would like to wait 50_000, but if the server is busy and dosent attend me, i like to fail fast (2_000) and switch to another server.

Am i explaning myself clear?

ctaity-treinta avatar Sep 14 '25 20:09 ctaity-treinta

I am wondering, why this PR (https://github.com/jayenashar/axios/pull/1/files) was discarded?

ctaity avatar Sep 14 '25 21:09 ctaity

+1

dzaltron avatar Sep 23 '25 16:09 dzaltron