-
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
Unknown type "ContentfulFixed". Did you mean "ContentfulBlogPost", "ContentfulContentType", or "ContentfulBlogPostEdge"? #16455
Comments
Hi @EdinK1, would you be willing to share a repo for this codebase so we can dive deeper and figure out what specifically is causing this error to appear. If not, can you make a reproduction of this? |
I also just got this error. I was following this tutorial https://www.youtube.com/watch?v=8t0vNu2fCCM&t=13486s and when I tried adding a query on blog.js it gave me a error. The weird thing is that it was working before in graphi. |
I'm able to reproduce this error while following this: https://itnext.io/content-management-with-gatsby-netlify-and-contentful-70f03de41602. Deleting the node_modules/gatsby-source-contentful/sec/fragments.js seemed to have "fixed" the error. |
Hmm, yeah it worked for me as well. I don't know if this is the correct way of doing it but thanks anyways! |
I am getting a similar error, deleting fragments file is not working for me. Anybody found a solution yet? |
Deleting the fragments file should do the trick. Try restarting your server. |
Thank you, it worked by deleting the fragments file, Although it seems more like a workaround than a true solution. Anybody dug deep into this? |
Same problem here, cant find whats the problem with contentful images export const mainQuery = graphql`
query {
contents: allContentfulContents {
edges {
node {
slug
title
content {
json
}
cover {
fluid {
...GatsbyContentfulFluid_noBase64
}
}
gallery {
id
fluid {
src
}
}
}
}
}
}
` Tried all of the contentful fragments, none of them works. |
I believe this is where all your images and content from your contentful blog is. (body { json } ) |
Update: after updating gatsby-source-contentful, seems that bug is gone, at least, i got my images now. But previously, i got same error message, that said, that error is propobally from Gatsby & i should post about that error here, on github. |
I have the same problem. gatsby@2.13.59 I have created gatsby project like this: Installed Created some simple content model: And created some content and after run Nothing special, almost in a default configuration. React application at localhost:8000 don't work, I can query contentful by graphql playground. |
Had the same issue, try reinstall gatsby-source-contentful to Version 2.1.19, worked for me. |
I tried reinstalling, but no luck. I think its more of a bug or version clash rather than error |
I did following steps:
|
I downgraded |
Add an image in your media files in your contentful. And try an image inside your post. This fixed issue for me. How and why I am not sure. |
For those having the same error, I resolved mine without deleting any data or downgrading any packages by doing these steps:
Hopefully, this solves your issues as well though It might be helpful if someone can enlighten us why this is the case. |
Adding of a image helped, image have to be published |
I still have this issue. Yesterday it worked when I uploaded a placeholder image, when I moved ahead with the same tutorial, stopped working. |
Have the same issue. Deleting fragments.js - helped. |
Deleting the fragments.js file helped remove the error. Although I'm not sure that's a proper solution. |
Have the same problem. Adding a dummy image on the "Media" tab fixed the issue |
Adding image placeholder worked for me |
Can you check if |
I would test it, but I can create only 2 spaces at contentful and i'm using both now :/, I can't delete any of them, any other good fairy which can test it? :) thx |
Hey, i solved it by just deleting all the content of the fragment.js, nothing else, it didn't work when i deleted the file, but just the content. |
I'm getting the same error as well. edit: adding an image asset and creating a blog post displaying that image seems to have "fixed" the problem
|
This issue really shouldn't be closed. It has a known cause (using a Contentful space with no media assets). It also has a decent impact considering the number of comments and reactions to comments on this discussion. Is there any way we can get this reactivated and prevent the bots from closing it? (Off-topic: I really dislike the trend of maintainers running bots that auto-close issues. Just because something hasn't had a comment in 30 days doesn't make an issue less real or impactful. It encourages unhelpful "+1" comments to keep an issue "alive") |
I agree that this should still be open, so I'm reopening. |
Dupe of #15397 not really sure which one is really the best thread to keep open. I added some details on the other thread about what I found recently; about when this was introduced; and a location we could insert a hook to fix it. |
I added below config to the gatsby-config.js: |
Just had the same issue, added an image to media assets like suggested and it worked. Makes no sense but did the trick... |
The same... after adding an image in Contentful, the issue is gone. The weirdest thing I have ever seen ... ;-9 |
You have to add image in contentful site because in body part you select rich textbox so add any image and then restart your server and these error will be gone. Give feedback or suggestion for better solution rather than this solution. #happyCoding :) |
adding
the gatsby-config.js helped |
Fixed the problem for me. Thanks |
Thanks man it worked for me :) |
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. Thanks for being a part of the Gatsby community! 💪💜 |
Is there a way to disable this? ☝️ This issue affects everyone that uses Gatsby with Contentful. In my opinion it should not be closed until we find a fix for this (an actual fix, not a work-around). |
This is a duplicate now of #15397 and we'd like to track it there. |
Adding an image to the media assets worked for me too. Don't know why either. |
ERROR #85901 GRAPHQL
I'm trying to fetch my blogs from contentful and it's giving me a weird error.
The only reason I am opening this issue is because the error told me to so.
This is what the error said:
Error: The result of this StaticQuery could not be fetched.
"This is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/gatsbyjs/gatsby/issues"
gatsby info output:
System:
OS: Windows 10
CPU: (8) x64 Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
Binaries:
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
Languages:
Python: 3.7.2
Browsers:
Edge: 44.18362.1.0
npmPackages:
gatsby: ^2.13.51 => 2.13.51
gatsby-plugin-sass: ^2.1.4 => 2.1.4
gatsby-plugin-sharp: ^2.2.10 => 2.2.10
gatsby-remark-images: ^3.1.7 => 3.1.7
gatsby-remark-relative-images: ^0.2.3 => 0.2.3
gatsby-source-contentful: ^2.1.18 => 2.1.18
gatsby-source-filesystem: ^2.1.9 => 2.1.9
gatsby-transformer-remark: ^2.6.11 => 2.6.11
error UNHANDLED REJECTION
Error: The system cannot find the path specified.
envinfo.js:1 Function.e.exports.sync
[v12.0.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:4908
envinfo.js:1 Object.copySync
[v12.0.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:66886
envinfo.js:1 Object.t.writeSync
[v12.0.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:48715
envinfo.js:1
[v12.0.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:46872
envinfo.js:1
[v12.0.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:46887
task_queues.js:88 processTicksAndRejections
internal/process/task_queues.js:88:5
The text was updated successfully, but these errors were encountered: