Next.js Discord

Discord Forum

Vercel build keep failing at fetch

Unanswered
Crazy ant posted this in #help-forum
Open in Discord
Avatar
Crazy antOP
tested on my local, nothing wrong, build just fine but in vercel it keeps giving me TypeError: fetch failed.

i tried to redeploy and rollback to any successfull build but still giving the same error again and again.

the api endpoint: https://inukami-pocketbase.bandroid.my.id

this is a pocketbase backend, the api exist even though trying to access route / will give you 404, but there's /api route in pocketbase.
Image
Image
Image

9 Replies

Avatar
Crazy antOP
even the latest changes i'm not touching any fetching codes, i just designing ui, and all the fetch error appear out of nowhere
Avatar
another pocketbase user ❤️
but it looks like it did make a request to pocketbase, but got an error
"Something went wrong"
check your pocketbase logs
@Crazy ant
Avatar
Crazy antOP
no error, everything requested with 200 response
i leave it for a night, then redeploy from latest commit, it is working :lolsob: no changes to my pocketbase or my code, suddenly work
Image
i think vercel sometimes randomly change dns for an account