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

gatsby-source-flamelink plugin is intermittently failing to download images from flamelink(warning Failed to download image: ) #50

Open
Sarankrishna opened this issue Dec 22, 2020 · 4 comments · May be fixed by #55

Comments

@Sarankrishna
Copy link

This plugin was working perfectly earlier, nowadays it is started having the problem of unable to download the image from flamelink. If the images are not downloaded obviously gatsby site build will not happen. Moreover, this plugin is working sometimes and not working sometimes. It shows the below warning for many image files. Though it saying it is a warning, but it is actually an error as if the images are not downloaded gatsby build will not succeed.

warning Failed to download image: 7C0au0Flo8y8q4fwGjvr

@dewetvdm
Copy link
Contributor

dewetvdm commented Jan 4, 2021

Hi @Sarankrishna

You could try the following before doing a build gatsby clean to invalidate the cache.

As for the images, if the image download fails, it is most likely related to a Firebase failure.
Is your Firebase (not Flamelink) project on a free tier or paid plan?

It would be really helpful if you could provide some more information as to what you think might be causing the issue, or if possible, create a pull request for a fix.

@Sarankrishna
Copy link
Author

Hi @dewetvdm ,
We are using the Firebase Blaze(pay as you go) plan. I think it is not a cache issue as this issue happening on the build machine also. The build is happening on a fresh Docker container. So it will not have any cache.

As I mentioned previously, it is an intermittent issue. I think it is a timeout issue. we may need to modify the code to increase the timeout bit more.

@leevi978
Copy link
Contributor

leevi978 commented Apr 8, 2021

I am having this problem as well. We are also using the Blaze plan from Firebase. Any updates on this issue?

EDIT: I think this could be caused by the firebase-admin dependency not being updated. gatsby-source-flamelink has 11 high severity vulnerabilities due to firebase-admin and google-p12-pem

@leevi978
Copy link
Contributor

Hello, I have since learned that what is causing the issue is likely that you are using an old version of gatsby-source-filesystem. Please bump this as well :)

@leevi978 leevi978 linked a pull request Apr 26, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants