Sharp: glib error on resize

Created on 6 Jan 2019  路  2Comments  路  Source: lovell/sharp

I am running node v10.5.0 on a shared hosting.

Calling the resize api produces this error.

Error: glib: Error creating thread: Resource temporarily unavailable

Emitted 'error' event at:
    at .../node_modules/sharp/lib/output.js:614:20

question

All 2 comments

Hello, the "shared hosting" service has probably been configured to limit the number of threads you're able to spawn. This is a question for the provider - good luck!

setting the sharp with concurrency(1) resolved this error.

Was this page helpful?
0 / 5 - 0 ratings