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.

Build failing after upgrade of gatsby-source-contentful

See original GitHub issue

Description

Upgraded gatsby-source-contentful from 2.3.56 to 3.1.0. Previously worked, now fails with the following output:

gatsby develop:

success open and validate gatsby-configs - 0.044s
success load plugins - 1.459s
success onPreInit - 0.040s
success initialize cache - 0.005s
success copy gatsby files - 0.044s
success onPreBootstrap - 0.017s
success createSchemaCustomization - 0.004s
error Accessing your Contentful space failed.
Try setting GATSBY_CONTENTFUL_OFFLINE=true to see if we can serve from cache.

Used options:
spaceId: "*********agp"
accessToken: "***************************************K0Cw"
downloadLocal: false
host: "cdn.contentful.com"
environment: "master"
localeFilter: true
forceFullSync: false
pageLimit: 100
assetDownloadWorkers: 50
useNameForId: true
richText: {}
not finished source and transform nodes - 0.239s
not finished Contentful: Fetch data (n1x5yig4pagp-master) - 0.138s

gatsby build (at Netlify):

3:26:44 PM: error Accessing your Contentful space failed.
3:26:44 PM: Try setting GATSBY_CONTENTFUL_OFFLINE=true to see if we can serve from cache.
3:26:44 PM: Used options:
3:26:44 PM: spaceId: "*********agp"
3:26:44 PM: accessToken: "***************************************K0Cw"
3:26:44 PM: downloadLocal: true
3:26:44 PM: host: "cdn.contentful.com"
3:26:44 PM: environment: "master"
3:26:44 PM: localeFilter: true
3:26:44 PM: forceFullSync: false
3:26:44 PM: pageLimit: 100
3:26:44 PM: assetDownloadWorkers: 50
3:26:44 PM: useNameForId: true
3:26:44 PM: richText: {}
3:26:44 PM: not finished source and transform nodes - 0.344s
3:26:44 PM: not finished Contentful: Fetch data (n1x5yig4pagp-master) - 0.145s

I’ve had a look at the release notes for 3.x.x and there doesn’t seem to be anything out of the ordinary.

I also saw https://github.com/gatsbyjs/gatsby/issues/27484 which looks similar, but since my previous working version of gatsby-source-contentful was higher than the one mentioned in that issue, I figured I’d open a new issue.

Environment

  System:
    OS: macOS 10.15.7
    CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
    Shell: 5.8 - /usr/local/bin/zsh
  Binaries:
    Node: 14.15.0 - ~/.nvm/versions/node/v14.15.0/bin/node
    npm: 6.14.8 - ~/.nvm/versions/node/v14.15.0/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 86.0.4240.111
    Firefox: 81.0.2
    Safari: 14.0
  npmPackages:
    gatsby: 2.25.0 => 2.25.0
    gatsby-image: 2.4.21 => 2.4.21
    gatsby-plugin-google-analytics: 2.4.0 => 2.4.0
    gatsby-plugin-manifest: 2.5.0 => 2.5.0
    gatsby-plugin-offline: 3.3.0 => 3.3.0
    gatsby-plugin-react-helmet: 3.3.14 => 3.3.14
    gatsby-plugin-robots-txt: 1.5.3 => 1.5.3
    gatsby-plugin-sharp: 2.7.0 => 2.7.0
    gatsby-plugin-sitemap: 2.5.0 => 2.5.0
    gatsby-plugin-styled-components: 3.3.14 => 3.3.14
    gatsby-plugin-svgr: 2.0.2 => 2.0.2
    gatsby-plugin-webpack-bundle-analyzer: 1.0.5 => 1.0.5
    gatsby-source-contentful: 3.1.0 => 3.1.0
    gatsby-source-filesystem: 2.4.0 => 2.4.0
    gatsby-transformer-sharp: 2.5.21 => 2.5.21

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
pvdzcommented, Nov 3, 2020

This fix was published in gatsby-source-contentful@3.1.1

Please skip 3.1.0 😃

0reactions
pvdzcommented, Nov 3, 2020

Thanks for figuring it out! 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Common Errors - Gatsby
Installing plugins for styling results in Generating SSR bundle failed. If you encounter a webpack error that says Generating SSR bundle failed after...
Read more >
netlify deployment build is failing for gatsby-contentful site
I'm trying to deploy a Gatsby-Contentful site to Netlify and while deploying it gives me build error. While testing in localhost its working ......
Read more >
Building Rise of the Robots with Gatsby and Contentful
Hi there! I recently built Rise of the Robots using Gatsby + Rive to demonstrate how Jamstack creativity and performance can co-exist ...
Read more >
Gatsby Changelog | 5.3.0
We've updated GraphiQL from v1 to v2 to bring you these cool new features: ... gatsby-source-drupal : Fix not found image urls failing...
Read more >
Deploying website for continuous deployment works fine ...
Improves time it takes to run queries during gatsby build. ... info Contentful: 1 new/updated entries 2:24:11 PM: info Contentful: 0 deleted ...
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