Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby-source-drupal): Bump timeout from 15s to 30s to avoid unnecessary API request timeouts #34035

Merged
merged 1 commit into from
Nov 22, 2021

Conversation

apotheosistech
Copy link

@apotheosistech apotheosistech commented Nov 19, 2021

fixes #34034

#33668 added a timeout of 15s so if API requests stall, we catch those and retry them. But in practice, this doesn't seem long enough as some requests hit the timeout consistently. We'll switch the timeout to 30s to see if this resolves the issue.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Nov 19, 2021
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Nov 22, 2021
@LekoArts
Copy link
Contributor

Please wait for the resolution of the issue first, this PR is until then a bit premature. Thanks!

@LekoArts LekoArts closed this Nov 22, 2021
@KyleAMathews KyleAMathews reopened this Nov 22, 2021
@KyleAMathews
Copy link
Contributor

@LekoArts he and I have already talked about making this change so we're good actually 👍

@KyleAMathews KyleAMathews changed the title Bump timeout from 15s to 30s fix(gatsby-source-drupal): Bump timeout from 15s to 30s to avoid unnecessary API request timeouts Nov 22, 2021
Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@KyleAMathews KyleAMathews merged commit 0d683cd into gatsbyjs:master Nov 22, 2021
@kmajzlik
Copy link

This would be better to be configurable (with fallback to those 30s). For example on some cases with local development of Drupal with Docker for Mac we would like to bypass this hardcoded value.

Preferable is timeout per resource but global is still better than hardcoded timeout).

@KyleAMathews
Copy link
Contributor

@kmajzlik could you create a new issue to discuss this?

pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this pull request Apr 28, 2022
Co-authored-by: Joe Stramel <joestramel@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gatsby-source-drupal times out sometimes when it shouldn't
5 participants