question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

503 Errors from gatsby-source-drupal

See original GitHub issue

Description

info Starting to fetch data from Drupal ⠹ source and transform nodes ⠋ Fetch data from Drupal

5-10 seconds after the above I get a bunch of 503 errors resulting in failure to build.

The Drupal site being sourced from has only 17 pages, and the host has already had the CPU level turned up to 300%, the highest I can make it will be 400%. On 200% CPU all builds failed, on 300% CPU building without basic authentication succeeds but fails mostly otherwise. I’ve set concurrentFileRequests: 1,, but it doesn’t appear to help in the slightest.

Steps to reproduce

I cannot provide reproducible steps because it requires a Drupal instance of sorts.

Expected result

Successful build.

Actual result

An attack of 503 errors when running gatsby develop or gatsby build.

Environment

System: OS: macOS 10.15.2 CPU: (8) x64 Intel® Core™ i7-7700HQ CPU @ 2.80GHz Shell: 3.2.57 - /bin/bash Binaries: Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node npm: 6.13.6 - ~/.nvm/versions/node/v12.13.1/bin/npm Languages: Python: 2.7.16 - /usr/bin/python Browsers: Chrome: 79.0.3945.130 Firefox: 72.0.1 Safari: 13.0.4 npmPackages: gatsby: ^2.18.11 => 2.18.11 gatsby-image: ^2.2.34 => 2.2.34 gatsby-plugin-manifest: ^2.2.31 => 2.2.31 gatsby-plugin-offline: ^3.0.27 => 3.0.27 gatsby-plugin-react-helmet: ^3.1.16 => 3.1.16 gatsby-plugin-sass: ^2.1.26 => 2.1.26 gatsby-plugin-sharp: ^2.3.5 => 2.3.5 gatsby-plugin-styled-components: ^3.1.18 => 3.1.18 gatsby-plugin-typescript: ^2.1.23 => 2.1.23 gatsby-source-custom-api: ^2.1.4 => 2.1.4 gatsby-source-drupal: ^3.3.12 => 3.3.12 gatsby-source-filesystem: ^2.1.40 => 2.1.40 gatsby-transformer-sharp: ^2.3.7 => 2.3.7 npmGlobalPackages: gatsby-cli: 2.8.27

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sidharthachatterjeecommented, Feb 12, 2020

Setting concurrentFileRequests should fix this and hitting /jsonapi should give you more information (since that’s what the plugin hits)

Closing this for now since it isn’t strictly Gatsby related. Do let us know if none of this works and if we can help further. Thanks!

1reaction
ascorbiccommented, Jan 28, 2020

Hi. This is almost always a configuration or load issue with the server. If you load /jsonapi on your site in a browser, does it load ok? Copy the URL from your gatsby-config to make sure you’ve got it exactly the same. Do this in an incognito/private window. If your API needs authentication, use the same basic auth credentials as in the site config. Let me know if this helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR #11321 PLUGIN - Request failed with status code 404
ERROR #11321 PLUGIN "gatsby-source-drupal" threw an error while running the sourceNodes lifecycle: Request failed with status code 404 ...
Read more >
gatsby js with godaddy results in 503 error - Stack Overflow
I am running a 'headless' (decoupled) Drupal install on GoDaddy hosting, using JSON API and GatsbyJS. Drupal > Gatsby works well locally, ...
Read more >
Troubleshooting Common Errors - Gatsby
Some errors may require fixes to Gatsby's core processes, these are best filed as issues. Many errors you encounter will mean adjusting how...
Read more >
gatsby-source-drupal-menu-links - npm
Integrates Drupal's jsonapi_menu_items module with Gatsby. Latest version: 3.0.1, last published: a year ago.
Read more >
gatsby | Yarn - Package Manager
Gatsby is a free and open source framework based on React that helps developers build blazing fast websites and apps. It combines the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found