Hello guys, We’re working with Ruby and Rails, try...
# community-help
l
Hello guys, We’re working with Ruby and Rails, trying to implement Typesense ATM. While importing we’re getting a timeouut error after importing about ~20k records:
Copy code
Post/documents/import to Node 0 failed due to "Typesense::Error::TimeoutError: Error"
Does anyone have an idea why we’re getting this issue ? Is it a limitation based on our cluster config ? Our timeout config is set to
200
:
Copy code
TYPESENSE_CLIENT = Typesense::Client.new(
  nodes: [{
    host:     ENV['TYPESENSE_ENDPOINT'],
    port:     443,
    protocol: 'https'
  }],
  api_key:  ENV['TYPESENSE_API_KEY'],
  connection_timeout_seconds: 200
)
j
That's the client side connection timeout. When importing you want to set that value as high as 10 minutes if needed so the client side timeout doesn't kick in while the import is happening
l
@Jason Bosco thanks a lot, indeed it worked by setting the timeout to a higher value 👍
👍 1