Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Error: Could not find MIME for Buffer <null> #459

Open
sumanbgl opened this issue Jul 1, 2022 · 1 comment
Open

Error: Could not find MIME for Buffer <null> #459

sumanbgl opened this issue Jul 1, 2022 · 1 comment

Comments

@sumanbgl
Copy link

sumanbgl commented Jul 1, 2022

utils.filterImageFromURL() is giving below error. How can this be resolved?

Error: Could not find MIME for Buffer
at Jimp.parseBitmap (C:\suman\udacity\scb\awsfs\cloud-developer\course-02\project\image-filter-starter-code\node_modules@jimp\core\src\utils\image-bitmap.js:156:15)
at Jimp.call [as parseBitmap] (C:\suman\udacity\scb\awsfs\cloud-developer\course-02\project\image-filter-starter-code\node_modules@jimp\core\src\index.js:400:17)
at parseBitmap (C:\suman\udacity\scb\awsfs\cloud-developer\course-02\project\image-filter-starter-code\node_modules@jimp\core\src\index.js:344:14)
at cb (C:\suman\udacity\scb\awsfs\cloud-developer\course-02\project\image-filter-starter-code\node_modules@jimp\core\src\index.js:73:14)
at cb (C:\suman\udacity\scb\awsfs\cloud-developer\course-02\project\image-filter-starter-code\node_modules@jimp\core\src\request.js:47:9)
at IncomingMessage. (C:\suman\udacity\scb\awsfs\cloud-developer\course-02\project\image-filter-starter-code\node_modules\phin\lib\phin.compiled.js:1:2038)
at IncomingMessage.emit (node:events:538:35)
at endReadableNT (node:internal/streams/readable:1345:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
[ERROR] 16:41:19 Error: Could not find MIME for Buffer

@abdelrazek-alaa
Copy link

I had the same issue yesterday while working on this project, and it turned out that the Wikipedia image link at the rubric wasn't supported by jimp. i tried another image link and it worked fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants