Skip to content
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

Sometimes request is giving EBUSY issue when hitting #333

Open
puneet0911 opened this issue Nov 20, 2019 · 0 comments
Open

Sometimes request is giving EBUSY issue when hitting #333

puneet0911 opened this issue Nov 20, 2019 · 0 comments

Comments

@puneet0911
Copy link

puneet0911 commented Nov 20, 2019

I am using the request-promise to post and get a request from the API side and we are calling API using the interval to call the API in every 30 Seconds.
Sometime we will get the log like EBUSY.


Error: getaddrinfo EBUSY xxxx.xxxx.com\n    at new RequestError (/home/node_modules/request-promise-core/lib/errors.js:14:15)\n    at Request.plumbing.callback (/home/node_modules/request-promise-core/lib/plumbing.js:87:29)\n    at Request.RP$callback [as _callback] (/home/node_modules/request-promise-core/lib/plumbing.js:46:31)\n    at self.callback (/home/node_modules/request/request.js:185:22)\n    at Request.emit (events.js:203:13)\n    at
at Request.onRequestError (/home/node_modules/request/request.js:881:8)
    at ClientRequest.emit (events.js:203:13)
    at TLSSocket.socketErrorListener (_http_client.js:399:9)
    at TLSSocket.emit (events.js:203:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at processTicksAndRejections (internal/process/task_queues.js:77:11)
(node:6571) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6571) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Can anyone explain to me this? because it's not coming on every time.

We also used that try {} catch(e){} but its still breaking the interval.
Every time we have to execute it manually on the server after when its stops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant