Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
923 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...