Skip to content

Hitting a time out error 'Error: 500 - Request timed out.' but only client side #220

Open
@eric-brace

Description

@eric-brace

Description

Using typesense-instantsearch-adapter and for longer running queries getting a 500 timed out error after 5 seconds. It seems to match the timeout here int he advanced settings for algolia https://www.algolia.com/doc/api-reference/api-methods/configuring-timeouts/

For more context we're using Remix and don't have any timeouts set there. The response actually returns from the multi_search network call but the browser seems to cancel the request before it can be used by the application.

We're also using onStateChange in component. Wondering if there's a timeout setting somewhere that we've missed or if anyone has come across this before.

Typesense adapter configuration is set to 20 seconds.

server: {
      apiKey: ak,
      connectionTimeoutSeconds:20,
      nodes: [
        {
          host: '<host_url>',
          path:"/typesense",
          port: 443,
          protocol: 'https',
        },
      ],
    },

Steps to reproduce

Screenshot 2024-10-07 at 18 13 34 Screenshot 2024-10-07 at 18 13 59

Expected Behavior

Expect request to our typesense server to not timeout after 5 seconds. Using curl there's no timeout.

Actual Behavior

5 second timeout.

Metadata

Typesense Version:
"typesense-instantsearch-adapter": "^2.8.0"

OS:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions