react-imgpro icon indicating copy to clipboard operation
react-imgpro copied to clipboard

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

Open adavia opened this issue 7 years ago • 5 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?

adavia avatar Feb 25 '18 16:02 adavia

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!

nitin42 avatar Feb 25 '18 17:02 nitin42

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.

adavia avatar Feb 26 '18 15:02 adavia

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!

nitin42 avatar Mar 02 '18 17:03 nitin42

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

gogumai avatar Aug 30 '18 18:08 gogumai

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.

yareyaredesuyo avatar Apr 29 '19 17:04 yareyaredesuyo