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.

[gatsby-source-contentful@next] Missing content when loading multiple Contentful Spaces

See original GitHub issue

Description

Content and fields are missing when sourcing from multiple content spaces

I’m using the next version of Contentful

Steps to reproduce

yarn add gatsby-source-contentful@next

Then do something like this:

module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-contentful`,
      options: {
        spaceId: `your_space_id`,
        accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
      },
    },
    {
      resolve: `gatsby-source-contentful`,
      options: {
        spaceId: `your_second_space_id`,
        accessToken: process.env.SECONDARY_CONTENTFUL_ACCESS_TOKEN,
      },
    },
  ],
}

Expected result

The expected result should have the Content Models from the second_space be filled with fields and content.

Actual result

Only the internals show up: Screen Shot 2020-09-12 at 3 12 40 PM

The contents from the first space is fine but the second space is always messed up.

Environment

System:
    OS: macOS High Sierra 10.13.6
    CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 14.10.1 - /usr/local/bin/node
    Yarn: 1.16.0 - ~/.yarn/bin/yarn
    npm: 6.14.8 - /usr/local/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 85.0.4183.102
    Firefox: 79.0
    Safari: 13.1.2
  npmPackages:
    gatsby: ^2.24.50 => 2.24.53
    gatsby-image: ^2.4.16 => 2.4.16
    gatsby-plugin-manifest: ^2.4.24 => 2.4.27
    gatsby-plugin-next-seo: ^1.6.1 => 1.6.1
    gatsby-plugin-offline: ^3.2.24 => 3.2.26
    gatsby-plugin-react-helmet: ^3.3.10 => 3.3.10
    gatsby-plugin-react-svg: ^3.0.0 => 3.0.0
    gatsby-plugin-sharp: ^2.6.28 => 2.6.31
    gatsby-plugin-theme-ui: ^0.3.0 => 0.3.0
    gatsby-plugin-web-font-loader: ^1.0.4 => 1.0.4
    gatsby-source-contentful: ^2.3.35-next.63 => 2.3.35-next.63+cfd6dc2ab
    gatsby-source-filesystem: ^2.3.25 => 2.3.27
    gatsby-transformer-sharp: ^2.5.13 => 2.5.14
  npmGlobalPackages:
    gatsby-cli: 2.12.91

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
axe312gercommented, Oct 2, 2020

We will fix this in #27244 which contains most of the fixes of the rich text canary 😃

0reactions
daydream05commented, Sep 19, 2020

@alex-tgk Oh thank you i’ll look into that! That might actually be better since pulling multiple spaces causes field collusions anyway.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Link content across multiple spaces | Contentful Help Center
How to link content across multiple spaces. To link content across multiple spaces: Open the web app and navigate to the "Content model"...
Read more >
Multiple environments - Contentful
Environments are container entities within a space that allow you to create and maintain multiple versions of your content types, and make changes...
Read more >
Space management - Contentful
Read this tutorial to learn how to export content from the systems listed above and import it into your Contentful spaces.
Read more >
Localization with Contentful
If you are working with content that needs to be available in multiple languages, ... Every Space has its own set of locales,...
Read more >
Spaces and organizations | Contentful Help Center
API keys. Locales. Content preview. Space roles. For instance: you might not want to have the same locales on ...
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