image icon indicating copy to clipboard operation
image copied to clipboard

IPX not working on Netlify (500 error)

Open BenjaminOddou opened this issue 3 years ago • 6 comments

Hello 👋,

I remarked that IPX provider wasn't working when I was publishing on Netlify. I don't have this problem when running the built app with nuxt preview command

Error log : screen

cc @pi0

BenjaminOddou avatar Aug 10 '22 17:08 BenjaminOddou

I have the same issue :/

marius-mcfly avatar Aug 11 '22 11:08 marius-mcfly

Same issue, any fix?

jeffrey-dot-li avatar Aug 12 '22 16:08 jeffrey-dot-li

same issue

tobychidi avatar Aug 26 '22 22:08 tobychidi

Same issue with @nuxt/image-edge. It used to work before I updated it.

retroriff avatar Sep 16 '22 18:09 retroriff

Same issue

Daedra22 avatar Sep 22 '22 05:09 Daedra22

+1

mahapo avatar Oct 10 '22 08:10 mahapo

here is a temporary fix, add a reverse proxy block in NGINX.

location /_ipx/_/ { rewrite /_ipx/_/(.*) /$1 break; proxy_pass http://127.0.0.1:4002/$1; }

where in i am running the nuxt config in port 4002.

here is a complete config.

`server { listen 3999; listen [::]:3999; try_files $uri /index.html; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:4002; proxy_redirect off; }

location /ipx// { rewrite /ipx//(.*) /$1 break; proxy_pass http://127.0.0.1:4002/$1; }

}`

ankiteshjha avatar Oct 28 '22 18:10 ankiteshjha

I think netlify seperates the built server folder and the public folder which goes to a cdn. Therefor it does not have access to the public folder and can't work. I think you should move to one of the cloud providers like cloudinary or wigix.

twuncher avatar Oct 29 '22 05:10 twuncher

I had same issue but on my custom server and I solved it by changing node version from 12 to 16 in my case.

Hogar23 avatar Jan 20 '23 10:01 Hogar23

Same issue with generate on netlify image

Youhan avatar May 14 '23 00:05 Youhan

I think netlify seperates the built server folder and the public folder which goes to a cdn. Therefor it does not have access to the public folder and can't work. I think you should move to one of the cloud providers like cloudinary or wigix.

Finally a good explanation.

tobychidi avatar May 25 '23 14:05 tobychidi

@danielroe Is it possible to fix it on the next release?

rashidpathiyil avatar Jun 08 '23 11:06 rashidpathiyil