R
Railway5w ago
Rhyan

.net 6

I can't connect to the endpoint
17 Replies
Percy
Percy5w ago
Project ID: a680c428-40e9-4879-a647-e39781388c33
Rhyan
RhyanOP5w ago
a680c428-40e9-4879-a647-e39781388c33,
Brody
Brody5w ago
going to need more information here, can't connect is a bit too vague unfortunately
Rhyan
RhyanOP5w ago
I created a test API in dotnet 6, with the default endpoint and added cors for any origin, and I want to access the endpoint that is there when we create the API, I tried with the domain:3000/GetWeatherForecast that was created, I tried to put the port in the variables and it doesn't work
Brody
Brody5w ago
the correct URL format would be https://domain.com/GetWeatherForecast
Rhyan
RhyanOP5w ago
even with the domain generated by the site?
Brody
Brody5w ago
yeah substitute domain.com with the railway generated domain
Rhyan
RhyanOP5w ago
Doesn't work
Brody
Brody5w ago
going to need more information here, doesn't work is a bit too vague unfortunately
Rhyan
RhyanOP5w ago
No description
Rhyan
RhyanOP5w ago
No description
Brody
Brody5w ago
that is a 404 page your own application is returning
Rhyan
RhyanOP5w ago
same endpoint
No description
Brody
Brody5w ago
are you sure you've pointed the domain to the correct port? the you would need to debug why your application is returning 404
Rhyan
RhyanOP5w ago
I don't even know how to debug it, if it's literally a standard dotnet api project with cors without any restrictions It magically started working :confused_nick: thx u help
Brody
Brody5w ago
i didnt do anything lol
Rhyan
RhyanOP5w ago
your presence counts
Want results from more Discord servers?
Add your server