Unhandled Runtime Error
Unanswered
Southern yellowjacket posted this in #help-forum
Southern yellowjacketOP
Error: connect ECONNREFUSED ::1:80
19 Replies
Southern yellowjacketOP
I'm facing this issue on build-time
in my api/issues
I have:
I have:
i see that you are fetching your own api in server comp: https://nextjs-faq.com/fetch-api-in-rsc (read link to see that you shouldn't do that)
also your using axios in client side, you should use fetch: https://www.adios-axios.com/ (but the other issue could still contribute, as only place i see from fetching localhost:3000)
Southern yellowjacketOP
hey, I'm still unable to solve this issue.
Can you help me to solve the issue?
@Southern yellowjacket Can you help me to solve the issue?
yes have you read the link i gave you? (if you have queries i can help, but a general idk i can't help with)
Southern yellowjacketOP
when i use fetch instead of axios , it shows Error: Failed to parse URL from /api/issues.
Please don't create duplicate posts
stick to one
Southern yellowjacketOP
Giant panda
So you haven't read what either Risky or Phantom have posted.
The FAQ page linked describes very clearly what's wrong.
So spend some time reading it.
(For reference: the error you see it not due to using either axios/fetch over the other, it's merely that you don't understand how to fetch data in server components)