Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

background color not in colormap error #13

Open
ehmicky opened this issue Jun 1, 2020 · 0 comments
Open

background color not in colormap error #13

ehmicky opened this issue Jun 1, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@ehmicky
Copy link
Contributor

ehmicky commented Jun 1, 2020

The following error is happening in some builds.

Error in file: public/static/0fcc4b193c9b78671c8ba9d2fdeaf48c/canva_pro_logo.gif
gifsicle:/tmp/5429c4b3-0087-46ef-99d5-82b31b1f4f55: background color not in colormap 
    /opt/buildhome/.netlify-build-plugins/node_modules/netlify-plugin-image-optim/index.js:29:30 async onPostBuild
    src/plugins/child/run.js:18:3 async Object.run
    src/plugins/child/main.js:38:38 async handleEvent
    src/plugins/ipc.js:97:9 async process.<anonymous>

The repository is private. The builds logs are not providing additional information unfortunately.

It looks like this error might be a user error. If this is the case, it might be good to wrap the imagemin() with a try/catch block and use utils.build.failBuild(). This method ensures that uncaught exceptions are reported as user errors instead of plugin bugs. More information can be found here.

@ehmicky ehmicky added the bug Something isn't working label Jun 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant