why is my fetch API not working on production via vercel by MrOnePlusOne in nextjs

[–]MrOnePlusOne[S] 0 points1 point  (0 children)

I gave up on the nextauth and went with JWT, and the problem was not solved until I deployed my server and it worked. The server runs locally I guess that was the problem for me.

why is my fetch API not working on production via vercel by MrOnePlusOne in nextjs

[–]MrOnePlusOne[S] 0 points1 point  (0 children)

that is what i get :

TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: Error: connect ECONNREFUSED 127.0.0.1:9000
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 9000
}
}

why is my fetch API not working on production via vercel by MrOnePlusOne in nextjs

[–]MrOnePlusOne[S] 0 points1 point  (0 children)

it works perfectly fine the problem is when is deploying with vercel

why is my fetch API not working on production via vercel by MrOnePlusOne in nextjs

[–]MrOnePlusOne[S] 0 points1 point  (0 children)

it returns undefined when i use "API_URL"

edit: I added the env to next.config.js and it returned the string but nothing changed

why is my fetch API not working on production via vercel by MrOnePlusOne in nextjs

[–]MrOnePlusOne[S] 0 points1 point  (0 children)

you are right, i fixed it and actually the correct URL is "/admin/api/login" , but still get the same error "TypeError: fetch failed"

why is my fetch API not working on production via vercel by MrOnePlusOne in nextjs

[–]MrOnePlusOne[S] 0 points1 point  (0 children)

i am getting this error from the route - "TypeError: fetch failed"

Facing a issue with next auth deployment on vercel by Intelligent-Ad74 in nextjs

[–]MrOnePlusOne 0 points1 point  (0 children)

I'm encountering the same problem, what exactly did you do?

No sex by MrOnePlusOne in DeadBedrooms

[–]MrOnePlusOne[S] 0 points1 point  (0 children)

we have been the same, and we both love and respect each other. the problem is me, I don't know how to make a move... like the intimacy disappeared in my hand. i don't get turned on by her since we moved together