Skip to content

feat(gatsby-source-strapi): timeout setting for queries #447

@george-wb

Description

@george-wb

Is your feature request related to a problem? Please describe.

Hey guys, the team I'm working with needs a feature that allows us to change the timeout for queries to Strapi. We utilize Strapi as a website builder and have many sites in the CMS. We have a couple of very large sites with over 100 pages, and when the query takes 60 sec or longer we get a 504 timeout error coming from [gatsby-source-strapi]/[axios]/lib/core/createError.js:16:15

Describe the solution you'd like

We'd like to be able to pass in our own timeout parameter for Strapi queries similar to how file fetching has the GATSBY_STALL_TIMEOUT env variable to alter the timeout settings (we've tried this and it doesn't work for our problem).

Describe alternatives you've considered

We have looked through the code to see where the query timeout is being set to 60 seconds and we're not able to find it.

Additional context

Screen Shot 2023-07-28 at 11 13 33 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions