Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
929 views
in Technique[技术] by (71.8m points)

javascript - unclear timeout received on axios call

We get timeout with ECONNABORTED error code while performing soapRequest call of easy-soap-request which uses an axios call.

It seems that timeout with ECONNABORTED is somewhat a valid response for other scenarios than classical timeout. You can take a look here, here and here.

This is our call:

const { response } = await soapRequest({ url, headers, xml: textXML, timeout: 100000 });

This is the exception:

message timeout of 100000ms exceeded
name Error
stack Error: timeout of 100000ms exceeded
    at createError (/app/node_modules/easy-soap-request/node_modules/axios/lib/core/createError.js:16:15)
    at RedirectableRequest.handleRequestTimeout (/app/node_modules/easy-soap-request/node_modules/axios/lib/adapters/http.js:264:16)
    at Object.onceWrapper (events.js:421:28)
    at RedirectableRequest.emit (events.js:315:20)
    at RedirectableRequest.EventEmitter.emit (domain.js:467:12)
    at Timeout._onTimeout (/app/node_modules/follow-redirects/index.js:166:13)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7
code ECONNABORTED

We run it from nodejs heroku server.

The main question is what is the root cause of the error?

EDIT: After intensive checkups, it was found out that this was a real classic timeout.

question from:https://stackoverflow.com/questions/65847223/unclear-timeout-received-on-axios-call

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...