Skip to content
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

Netlify deploy fail due to ? in file name from gatsby-plugin-sharp #7565

Closed
lightstrike opened this issue Aug 22, 2018 · 1 comment
Closed
Labels
help wanted Issue with a clear description that the community can help with. type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@lightstrike
Copy link
Contributor

I am creating some remote file nodes that have image URLs with querystrings (ie https://images-na.ssl-images-amazon.com/images/I/41wzgc0dDzL.jpg?w=620&ssl=1), which is fine locally, but trips the following deploy error in Netlify:

3:16:11 PM: Build script success
3:16:11 PM: Starting to deploy site from 'public/'
3:16:11 PM: Failing build: Failed to deploy site
3:16:11 PM: failed during stage 'deploying site': Invalid filename 'static/ba9fa7e11fff80162fc7ba76fff2dae3-b5917d30ab5c442b45f83e7f1db03de6-7a16e.jpg?resize=178%2c300&ssl=1'. Deployed filenames cannot contain # or ? characters

Is there a way to either change the file name within createRemoteFileNode or the hash naming logic to exclude? I don't such an option for the createRemoteFileNode docs, while based on this comment from #6232 it appears the hashing logic is currently fixed.

@Chuloo Chuloo added type: question or discussion Issue discussing or asking a question about Gatsby help wanted Issue with a clear description that the community can help with. labels Aug 23, 2018
@pieh
Copy link
Contributor

pieh commented Oct 25, 2018

This should be fixed by #9011

@pieh pieh closed this as completed Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issue with a clear description that the community can help with. type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants