Timeout Issues with NodeJS Bindings for Typesense and Axios
TLDR Todd reported intermittent timeout errors when using NodeJS bindings for Typesense with the Axios library. Jason tried to troubleshoot the issue, but the source of the 2s timeout remains unidentified.
Oct 20, 2022 (14 months ago)
Todd
09:35 PM
Request #1666300760400: Request to Node 0 failed due to “ECONNABORTED timeout of 2000ms exceeded”
Request #1666300760400: Sleeping for 0.1s and then retrying request...
Request #1666300760512: Request to Node 0 failed due to “ECONNABORTED timeout of 2000ms exceeded”
Request #1666300760512: Sleeping for 0.1s and then retrying request...
Request #1666300760400: Request to Node 0 failed due to “ECONNABORTED timeout of 2000ms exceeded”
Request #1666300760400: Sleeping for 0.1s and then retrying request...
Debug: handler, error
Error: timeout of 2000ms exceeded
at createError (/opt/xyz/node_modules/typesense/node_modules/axios/lib/core/createError.js:16:15)
at RedirectableRequest.handleRequestTimeout (/opt/xyz/node_modules/typesense/node_modules/axios/lib/adapters/http.js:369:16)
at RedirectableRequest.emit (node:events:513:28)
at Timeout.<anonymous> (/opt/xyz/node_modules/follow-redirects/index.js:169:12)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
Debug: internal, error
Error: timeout of 2000ms exceeded
at createError (/opt/xyz/node_modules/typesense/node_modules/axios/lib/core/createError.js:16:15)
at RedirectableRequest.handleRequestTimeout (/opt/xyz/node_modules/typesense/node_modules/axios/lib/adapters/http.js:369:16)
at RedirectableRequest.emit (node:events:513:28)
at Timeout.<anonymous> (/opt/xyz/node_modules/follow-redirects/index.js:169:12)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
Request #1666300760512: Request to Node 0 failed due to “ECONNABORTED timeout of 2000ms exceeded”
```Oct 21, 2022 (14 months ago)
Jason
12:34 AMTodd
05:30 PMTodd
05:32 PMJason
05:36 PMTodd
05:37 PMTodd
05:38 PMJason
05:38 PMTodd
05:47 PMTodd
06:10 PMhttps://github.com/PhillipChaffee/assemblyai-node-sdk/blob/master/src/assembly-client.ts
I see 3 invocations of the string timeout, none of which remotely resemble the global timeout stuff
Todd
06:12 PMnpm ls
. I’m pretty stumped by what the source of this could be.Jason
06:29 PMNothing fancy in there… The axios timeout param is documented here: https://axios-http.com/docs/instance
Jason
06:30 PMTypesense
Indexed 3015 threads (79% resolved)
Similar Threads
Typesense Cloud Requests Timeout Issue
Chase and AK are experiencing timeout issues with Typesense Cloud requests. Jason asked to share more information.
Debugging "ECONNABORTED Timeout" Issue in Typesense Configuration
GM encountered an "ECONNABORTED timeout" error using their company account with their typesense configuration. Jason is assisting in troubleshooting, suspecting that environment variables might not be set correctly.
Solving Timeout Error with Typesense in Ruby on Rails
Loic was encountering a timeout error while implementing Typesense with Ruby and Rails. Jason advised to increase the client side connection time. Loic confirmed the solution worked.
Dealing with Timeout Issues with Typesense in Algolia Plugin
Prime encounters timeout while making a typesense request inside a custom algolia autocomplete plugin. Though recommended solutions were tried, the issue wasn't fully resolved.
Troubleshooting Indexing Duration in Typesense Import
Alan asked about lengthy indexing times for importing documents to Typesense. Jason suggested various potential causes, including network connectivity and system resources. They later identified the problem to be an error in Alan's code.