Localhost is able to fetch API request from my express server, deployed version is not.
Unanswered
West African Lion posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
West African LionOP
express server is hosted on AWS E2 instance. Ubuntu node JS.
![Image](https://cdn.discordapp.com/attachments/1120821481291665418/1120821481643978902/83e42f0d-c512-47a2-bf3d-3a62fbd4bf5e.png)
4 Replies
![Avatar](https://cdn.discordapp.com/avatars/809942393637306400/1e4e5a29a08b96de9a1e3d3520b5e771.webp?size=256)
tafutada777
@West African Lion are you saying that your Next.js server deployed on Vercel failed to connect to your upstream, Express server via fetch? but it works localhost -> express API?
![Avatar](https://cdn.discordapp.com/embed/avatars/3.png)
West African LionOP
Resolved the issue already, had not clarified a sub directory Vercel was supposed to deploy from
But yes
![Avatar](https://cdn.discordapp.com/avatars/809942393637306400/1e4e5a29a08b96de9a1e3d3520b5e771.webp?size=256)
tafutada777
404 means the problem is located in Vercel app. if it resides btw upstream, it returns 502 or 504, bad gateway or timeout. or 5XX in fetch command