noxify / gridsome-plugin-remark-image-download

MIT License
4 stars 3 forks source link

Build fails when image download fails #5

Open capsia37 opened 3 years ago

capsia37 commented 3 years ago

Hi, the plugin sometimes makes the build fail if an image isn't downloaded correctly. It appears that it isn't related to the image since it is there and it works most of the time. I think that it would be better if the build wouldn't fail when a download fails, instead the plugin should just skip it.

[Error: VipsJpeg: Premature end of JPEG file
VipsJpeg: out of order read at line 0
]
An error occurred while executing page-query for src/templates/Device.vue
Error: Expected node, got `https://fdn2.gsmarena.com/vv/pics/yureka/yu-yureka-yu5040-1.jpg`
GraphQL request:164:5
163 |     enableMdRendering
164 |     content
    |     ^
165 |     portStatus {
    at throwError (/builds/ubports/infrastructure/devices.ubuntu-touch.io/node_modules/gridsome/lib/app/build/executeQueries.js:22:13)
    at pMap.concurrency (/builds/ubports/infrastructure/devices.ubuntu-touch.io/node_modules/gridsome/lib/app/build/executeQueries.js:59:9)

For the full log you can check: https://gitlab.com/ubports/infrastructure/devices.ubuntu-touch.io/-/jobs/1346050084

Code and configuration is available at: https://gitlab.com/ubports/infrastructure/devices.ubuntu-touch.io/

Thank you!