#community-help

ECONNABORTED Timeout Error in Typesense Import

TLDR Babin encountered a timeout error while importing items. Kishore Nallan suggested increasing the client timeout.

Powered by Struct AI
+11
5
5mo
Solved
Join the chat
Apr 11, 2023 (5 months ago)
Babin
Photo of md5-aece7b06eda2a85a5bcfb5fd39332e2c
Babin
08:59 PM
Importing 100 items from USA to INDIA Cluster
Anybody encountered 🔴 ECONNABORTED timeout of 5000ms exceeded 🔴
ERROR    Error: timeout of 5000ms exceeded
    at createError (/opt/nodejs/node_modules/typesense/node_modules/axios/lib/core/createError.js:16:15)
    at RedirectableRequest.handleRequestTimeout (/opt/nodejs/node_modules/typesense/node_modules/axios/lib/adapters/http.js:369:16)
    at RedirectableRequest.emit (node:events:513:28)
    at Timeout.<anonymous> (/opt/nodejs/node_modules/follow-redirects/index.js:169:12)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7) {
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    adapter: [Function: httpAdapter],
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function (anonymous)] ],
    timeout: 5000,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: Infinity,
    maxBodyLength: Infinity,
    validateStatus: [Function: validateStatus],
    headers: {
      Accept: 'application/json, text/plain, */*',
      'Content-Type': 'text/plain',
      'X-TYPESENSE-API-KEY': 'GK8FgBQGPZ8HGu7wCQAZ2pJZ0qwZvmQC',
      'User-Agent': 'axios/0.26.1',
      'Content-Length': 1206199
    },
    method: 'post',
    url: '',
    params: { action: 'upsert' }
Apr 12, 2023 (5 months ago)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:18 AM
Have you tried increasing the client timeout to see if it completes?
Babin
Photo of md5-aece7b06eda2a85a5bcfb5fd39332e2c
Babin
02:19 AM
Any reference document that I can refer would be appreciated
Babin
Photo of md5-aece7b06eda2a85a5bcfb5fd39332e2c
Babin
02:34 AM
Thank Kishore Nallan. I will try it
+11