Using fetch with api behind Nginx error?
Unanswered
Kawakawa posted this in #help-forum
Original message was deleted.
8 Replies
European sprat
Update node
Kawakawa
@European sprat I'm using Node 18.8. Is that not supported for Next 13 or something?
That's what the deployment server is using, anyway
But I thought that would be fine?
European sprat
That's fine I just thought maybe that based on that message about fetch
@European sprat That's fine I just thought maybe that based on that message about fetch
Kawakawa
Right ok - I mean I'm pretty sure 18.8 is Node LTS
Correction - 18.17 is, but still they both have equal fetch support
Kawakawa
Yeah so I have no clue why it’s not fetching - but it’s 100% not a me issue. I believe it’s Next’s own Fetch issue (via the Undici poly ill) because the request works everywhere else.
To reiterate - my API and site are both under an Nginx server acting as a reverse proxy - so the server is just on localhost, and my backend API is proxied to be on
To reiterate - my API and site are both under an Nginx server acting as a reverse proxy - so the server is just on localhost, and my backend API is proxied to be on
localhost/api.