flamelink / gatsby-source-flamelink

Gatsby source plugin for Flamelink
MIT License
8 stars 9 forks source link

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

Open Sarankrishna opened 3 years ago

Sarankrishna commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 :)