You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A clear and concise description of what the bug is. If your problem is not a bug, please file under Support or Usage Question
The timeout value mentioned in the timeout error message is different from the actually applied request timeout. See the code example below.
To Reproduce
Code snippet to reproduce, ideally that will work by pasting into something like https://npm.runkit.com/axios, a hosted solution, or a repository that illustrates the issue. If your problem is not reproducible, please file under Support or Usage Question
2021-02-23 20:30:49.687 INFO [WD Proxy] Error: timeout of 240000ms exceeded
2021-02-23 20:30:49.688 INFO [WD Proxy] at createError (/usr/local/lib/node_modules/appium/node_modules/axios/lib/core/createError.js:16:15)
2021-02-23 20:30:49.688 INFO [WD Proxy] at RedirectableRequest.handleRequestTimeout (/usr/local/lib/node_modules/appium/node_modules/axios/lib/adapters/http.js:280:16)
2021-02-23 20:30:49.688 INFO [WD Proxy] at Object.onceWrapper (events.js:428:26)
2021-02-23 20:30:49.688 INFO [WD Proxy] at RedirectableRequest.emit (events.js:321:20)
2021-02-23 20:30:49.688 INFO [WD Proxy] at ClientRequest.eventHandlers.<computed> (/usr/local/lib/node_modules/appium/node_modules/follow-redirects/index.js:13:24)
2021-02-23 20:30:49.688 INFO [WD Proxy] at ClientRequest.emit (events.js:321:20)
2021-02-23 20:30:49.688 INFO [WD Proxy] at Socket.emitRequestTimeout (_http_client.js:721:9)
2021-02-23 20:30:49.688 INFO [WD Proxy] at Object.onceWrapper (events.js:427:28)
2021-02-23 20:30:49.688 INFO [WD Proxy] at Socket.emit (events.js:321:20)
2021-02-23 20:30:49.689 INFO [WD Proxy] at Socket._onTimeout (net.js:478:8)
2021-02-23 20:30:49.689 INFO [WD Proxy] at listOnTimeout (internal/timers.js:549:17)
2021-02-23 20:30:49.689 INFO [WD Proxy] at processTimers (internal/timers.js:492:7)
although the actual time elapsed after the request is sent is 60 seconds, which is equal to the httpAgent option value. I expect axios to rather put the correct timeout value into the exception message or to actually wait 240 seconds, so the timeout set in request options overrides the one that is set for a http(s) agent instance.
Describe the bug
A clear and concise description of what the bug is. If your problem is not a bug, please file under Support or Usage Question
The timeout value mentioned in the timeout error message is different from the actually applied request timeout. See the code example below.
To Reproduce
Code snippet to reproduce, ideally that will work by pasting into something like https://npm.runkit.com/axios, a hosted solution, or a repository that illustrates the issue. If your problem is not reproducible, please file under Support or Usage Question
Expected behavior
This code throws an exception, which looks like
although the actual time elapsed after the request is sent is 60 seconds, which is equal to the httpAgent option value. I expect axios to rather put the correct timeout value into the exception message or to actually wait 240 seconds, so the timeout set in request options overrides the one that is set for a http(s) agent instance.
Environment
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: