Next.js private network communication issue with .NET API services
tshamugia
HOBBYOP

10 months ago

Hello,

I have an issue connecting a Next.js application to a .NET API service.

When I make requests to the public URL, everything works fine, but when trying to access the service within the internal network, the request fails, and Next.js returns a TypeError: Fetch Failed.

I checked the endpoints, and the URL is correctly pointing to the internal service domain, but the request doesn’t even reach the service—Next.js itself returns the error.

If anyone has encountered a similar issue, please help me resolve it.

Let me know if you need more details, and I'll provide additional information.

Thanks in advance!

Solved

0 Replies

tshamugia
HOBBYOP

10 months ago

22ce1f2a-8626-4ae6-81ee-1480f24974e8


brody
EMPLOYEE

10 months ago

please provide the exact url you are trying


tshamugia
HOBBYOP

10 months ago

backend.railway.internal/User/check?email=asd@email.com


brody
EMPLOYEE

10 months ago

you are missing http:// and the port


brody
EMPLOYEE

10 months ago

!s


Status changed to Solved brody 10 months ago


Loading...