-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[gatsby-source-contentful] Missing content in rich text fields #9821
Comments
@oherterich please provide the relevant environment information by running I understand that your project is based on the |
@kakadiadarpan Done! Result is below:
|
I believe I'm experiencing the same issue. My query for an embedded asset also returns an empty content array.
Here's my info:
Is this related to not providing the beta contentful rich text environment variable? I don't understand how to provide this. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m Thanks again for being part of the Gatsby community! |
Hello, I am experiencing the same issue with embedded images.
The image is loaded and published in the rich text editor: However, when I query the data, the file is not there: Not sure what's going on: the Any ideas as to what's happening? |
Hey @dmbdesignpdx - could you post the GraphQL query you're using? Also, try clearing the |
Yep! Deleting the Thank you for pointing that out. Oh, here was my query (if it still matters):
|
Awesome! Glad that solved it 👌 |
Summary
The
gatsby-source-contentful
plugin does not return correct data for the rich text field type in Contentful.Specifically, it only returns the text fields, and not any embedded content. The embedded content is represented by an empty array, instead of a real value.
After using the
allContentful***
GraphQL query, the following is returned for thepost
field, which is the rich text field:The empty
"content"
arrays are where the embedded content is located.Am I doing something wrong here? Is there a different way to see this content?
Relevant information
This Gatsby project is based from the
gatsby-starter-gcn
starter, and not modified at all.I added an environment variable to .env.development file, as indicated here: https://github.com/ryanwiemer/gatsby-starter-gcn
Environment (if relevant)
File contents (if changed)
gatsby-config.js
: N/Apackage.json
: N/Agatsby-node.js
: N/Agatsby-browser.js
: N/Agatsby-ssr.js
: N/AThe text was updated successfully, but these errors were encountered: