nitin42 / react-imgpro

📷 Image Processing Component for React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught Error: HTTP Status 404 at XMLHttpRequest.xhr.onload

adavia opened this issue · comments

I get a bunch of annoying errors in the console like:
Uncaught Error: HTTP Status 404 for url http://localhost:3000/uploads/book/image/15/IMG-20171002-WA0012.jpg
at XMLHttpRequest.xhr.onload (jimp.min.js:27)

What does it suppose to mean?

hm.. can you tell me exactly from where you are loading the image ? This error is internally thrown by the Jimp (image processing library behind this component) from what I am seeing!

Im loading the images locally from my server. It seem like the Jimp package uses the cors anywhere module and for some reason is not allowing me to load images. So the error comes from "http://cors-anywhere.herokuapp.com/http://localhost:3001/uploads/book/default.png" It says Missing required request header. Must specify one of: origin,x-requested-with.
Dont know i any config must be set up relating this matter.

Strange. I am trying to find some time to prepare for a new release so, stay tuned! I'll try to fix this (and also the other) issues. Thanks!

Hi @nitin42 have you had some time to check this? I'm also having this issue.
Also, isn't this related to #18 ?

I got similar error in google cloud storage (but this can be solved by cors settings ). when I upload and load image, using default tag has no problem, But when using ProcessImage, XMLHttpRequest error occured and cannnot load image.