nitin42 / react-imgpro

📷 Image Processing Component for React
2.18k stars 83 forks source link

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

Open adavia opened 6 years ago

adavia commented 6 years ago

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?

nitin42 commented 6 years ago

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!

adavia commented 6 years ago

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.

nitin42 commented 6 years ago

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!

gogumai commented 6 years ago

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

yareyaredesuyo commented 5 years ago

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.