-
-
Notifications
You must be signed in to change notification settings - Fork 43
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 fails on build when querying an Attachment field. No childImageSharp. #124
Comments
👋 Just a quick look here, but it looks like only one of your two nodes has an image. That could potentially be giving you issues. That isn't a great outcome, but let's figure out the problem first and then decide how to deal with it. You can try filtering down to one specific node id with a picture or you could try adding pictures to all of your nodes (or make a view in airtable to only show rows with pictures). |
Thanks for checking this out! Unfortunately, this might then be some problem when the images are pulled in, as both of my nodes have pictures in them. I have thought that this might be a problem (and actually I also figured out that it broke when one of the images had too long of a name, so I changed it), so I created the test setup where it only sources two nodes with fully filled in data. |
Have you had any luck since your response? It sounds like the most recent gatsby features have become more strict/revealed bugs in various plugins, and part of me is hoping that this fixed itself 🤞 . |
Unfortunately no. I have wasted a lot of time and had to push forward so I reverted back to simply getting the raw source url from airtable (it is linking now to the airtable url of the attachment). I will have to look at it again soon, as this will break if there are too many visitors and therefore requests to airtable. If you need more details on the bug I would be more than happy to support the resolution of this! |
Well, that is certainly unfortunate. Nothing is jumping out at me with the information supplied. Do you have any more details that you are able to share? Would you be able to confirm if images through |
@szemy2 @jbolda I'm getting this same error:
My airtable query looks like this:
I consistently get this error for two out of the 35 records:
When I check that folder in my local |
That is super odd, @dylanjha. Could you let me know the exact versions that you are using this plugin, this plugin's |
Also, what operating systems are you both using? |
|
Hmm, well the update on |
Hi, I am running:
|
Hmm different OS so I will assume that OS is not related to the issue. We are at this portion of the code which the only thing of substance that could have changed there is I have not seen any failures on my end, so I imagine it's something to do with the filenames of these specific attachments (which could also mean the download url) or an update to the filesystem source. If you try downgraded versions of the filesystem source and the issue persists, I presume it's the former. |
That's exactly where I was looking. I actually think it had to do with the original uploaded filename not containing an extension. "dylan-square" vs. "dylan-square.jpg". I haven't gotten a chance to find the codepath where that breaks but the records that were breaking for me did not have an extension on the original image filename. Maybe give that a try? When I removed the image from airtable, re-named the file to have an extension and then re-uploaded it into the same field then the issue was fixed. |
I've been running into this issue too, I found this combo to be successful:
I'm pulling down a ton of high resolution images. It'll fail sometimes, but clearing the cache usually helps. |
@brohlson ah. If that’s the case, this is most likely related to this issue: gatsbyjs/gatsby#6291 (comment) - there is a PR in the underlying repo for sharp which hasn’t been merged yet due to the holidays, and lack of time for testing, but one of the Gatsby team members has been pushing to get this issue resolved. |
Totally hit that issue as well, the |
Has anyone made further progress on this with updates? |
This issue has been automatically marked as stale because it has not had any recent activity for 30 days. It will be closed if no further activity occurs within 7 days. Remove stale label, comment, and/or apply "ongoing issue" label to prevent this from being closed. Thank you for your contributions. |
I'm having a similar issue. Not sure if it comes from the same place as other issues reported above, but in our case it seems to be related with the file name being to long and being ellipsized. Downloading the file from airtable saves the file with the extension, but this plugin seems to be taking the ellipsized name. Then, other plugins down the pipe don't know how to process the image without extension. Do maintainers think this could be the root cause of the problems raised here? Should I open a separate issue to track my problem? |
This plugin is extremely useful, I have been building the third project with it.
Now, however with my latest project I would like to optimize the image that are being pulled in, by using the example here that uses gatsby-transform-sharp.
I have tried to debug for a few days now, here is the most noteworthy behaviour:
When I query childImageSharp, it seems to exist:
![image](https://user-images.githubusercontent.com/16992850/69877643-0335c680-12c3-11ea-9632-fe190990d60b.png)
However when I try to get the width property gatsby fails without warning and gives me back this message in graphql:
![image](https://user-images.githubusercontent.com/16992850/69877576-e5686180-12c2-11ea-9358-b02024db9c70.png)
I have tried reinstalling, changing the order of the plugins, trying different names for the variable, narrowing the database down to 1 row, so that I don't get error for empty fields, taken out all query except one to be sure that is the problem.
Here are the dependencies I am using:
and my config file:
Here is my query:
The text was updated successfully, but these errors were encountered: