-
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-remark-images-contentful] intermittent build errors with/to base64 #11867
Comments
@floriangaechter it seems to me that this could be a case like #11747. I'll be closing it in favour of that one please tell us as much as you can about this issue (maybe share your repo). If it does not, feel free to re-open 😄 |
@wardpeet thanks for your response. I’m not sure if those two are related as in our case, deleting the cache folder actually makes the issue worse instead of better. I’ll leave the issue closed for now and follow the other topic but might reopen it later if it turns out that the issues are not related. |
Turns out the issue is the |
lets re-open. Could you maybe try to create a small reproduction? ^^ |
Sure, check out https://github.com/floriangaechter/tracedsvgtest I hard-coded the api keys for contentful, since it seems to only happen when the images are stored there. If you have a look at the query in https://github.com/floriangaechter/tracedsvgtest/blob/master/src/pages/index.js#L37 and remove the |
Some new information – sometimes I'm getting the following error:
Here's the stack trace:
and:
I think it has to do with the way the images are pulled from Contentful… |
@floriangaechter We've been running into similar issues using Contentful with @robinpowered |
I am having a similar issue, which was confusing to me since my latest build on Netlify was working perfectly fine.
But with HIPS disabled I am able to perform I dont know exactly what this means for Gatsby or why, but I hope this helps. |
We have the same problem. A fix would be appreciated. |
It really seems to be an issue with the images coming from Contentful. If I add the Maybe @Khaledgarbaya has an idea what the issue could be? |
Hey Folks, But I am not sure where exactly this is failing. Is it happening only with |
Yes, I think it has something to do with the generation of either the base64 or tracedSVG variant of the image. Because if I remove both of them and tell Gatsby to generate neither base64 or tracedSVG the build succeeds each time. And it happens to all images, not just |
We're running into this issue as well with the Figma marketing site when building on Ubuntu. We had a similar issue on some machines on macOS, but running To resolve in production we've replaced all Gatsby Image gql queries w/ the Any chance someone on the @gatsbyjs/core team can take a look?
|
@floriangaechter thanks for the repro i'll try to look at this today or else tomorrow. |
Hey @wardpeet Cheers |
Any updated guys, its still occuring? |
@ddsr17 yes, as soon as we pull in data from Contentful the build task crashes, stalls, or, if we're very lucky, succeeds 😄 but to be serious, yes, we still have the issue. Currently we're doing without any image preprocessing, just serving the images without traced SVGs or blurred versions of the image. |
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! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contributefor more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
Hi all, I'm also seeing this behaviour, but it's originating from gatsby-remark-images-contentful. The issue seems intermittent for me also, sometimes building fine, other times hanging on the queries stage. I ran the build via Charles Proxy and can see the image requests going out. When the build hangs, I can see one or more images that have started transferring but don't complete, axios then hangs indefinitely. I've only seen this effect the original images, not the w=40 variants. I tried adding a timeout to the axios call, but this doesn't have any effect. I believe this is due to the fact that the connection has started, rather than failed to connect at all. With my very limited knowledge in this area, it does look like the code always expects the connection to be successful and timely. I wonder if we could bolster the connection handling to allow it to time out and then gracefully re-try the failed resources. Interestingly when I requested the same resources via a bash script, concurrently requested, it succeeded every time. The transfers appeared to slow down towards the end, but no dropouts.
|
Hi all, I am also facing this problem and this makes development process really tedious. I tried all possible solutions to make it faster but did not work any of them so far. I hope you guys would introduce something soon. |
I can confirm that this is still happening intermittently for me as well. |
I just started experiencing this issue and found this to be the root cause. No problems building without
Edit: I decided to update to version |
For those still facing this issue: I decided to update my version of |
@thetrevorharmon, I ended up having to remove the plugin for now. |
Closing this as stale since in the meantime Gatsby v3 and updated related packages were released. Please try with the latest versions and if you still see this problem open a new bug report (it must include a minimal reproduction). |
Description
We're having an issue during the build phase of our project: sometimes the
run graphql queries...
step finishes without any issues and the site builds fine. But since recently the build process gets stuck at the⡀ run graphql queries — 123/125 46.15 queries/second
step and keeps either spinning forever or, if it finishes, takes a very long time (it doesn't always stop at 123. Sometimes it stops at 7/125 or other numbers).Steps to reproduce
.cache
foldergatsby build
Expected result
The build process should finish without issues.
Actual result
The build process gets stuck at the "run graphql queries..." phase.
Environment
The text was updated successfully, but these errors were encountered: