.net 6
logfast
HOBBYOP

a year ago

I can't connect to the endpoint

21 Replies

logfast
HOBBYOP

a year ago

a680c428-40e9-4879-a647-e39781388c33,


a year ago

going to need more information here, can't connect is a bit too vague unfortunately


logfast
HOBBYOP

a year 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


a year ago

the correct URL format would be https://domain.com/GetWeatherForecast


logfast
HOBBYOP

a year ago

even with the domain generated by the site?


a year ago

yeah substitute domain.com with the railway generated domain


logfast
HOBBYOP

a year ago

Doesn't work


a year ago

going to need more information here, doesn't work is a bit too vague unfortunately


logfast
HOBBYOP

a year ago

1298694608351662300


logfast
HOBBYOP

a year ago

1298694886257856500


a year ago

that is a 404 page your own application is returning


logfast
HOBBYOP

a year ago

same endpoint

1298699396459794400


a year ago

are you sure you've pointed the domain to the correct port?


logfast
HOBBYOP

a year ago

yes

1298704099419750400
1298704099738648600
1298704100044836900


a year ago

the you would need to debug why your application is returning 404


logfast
HOBBYOP

a year ago

I don't even know how to debug it, if it's literally a standard dotnet api project with cors without any restrictions


logfast
HOBBYOP

a year ago

It magically started working


logfast
HOBBYOP

a year ago

<:confused_nick:1265465478189416569>


logfast
HOBBYOP

a year ago

thx u help


a year ago

i didnt do anything lol


logfast
HOBBYOP

a year ago

your presence counts


Loading...