❔ Problem setting up ASP.NET on Linux
Hi, I'm trying to setup ASP on linux but I'm getting erros like this
https://cdn.discordapp.com/attachments/679791684548296735/1146446137662914590/image.png
24 Replies
`
Does your dotnet cli work with other commands?
any test command I could run?
dotnet info
dotnet build
nvm so we fixed that but still, we have an issue now where all endpoints end up in 404
Mhm.
Are you sure you are hitting the .NET server at all?
mmm
I know what a 404 is.
yes it is
its showing up on the cli
okay
could be an issue with the nginx config
well it looks like nginx forwarded it correctly to me
are you using minimal api or controllers?
controllers
okay, show me the controller you are trying to hit here
i think its because its failing to connect to db on start up
that shouldnt cause it to 404
it should either not start at all, or throw errors that would result in 500s
ye it doesnt do that
this is the controller
okay, I see its listening on
api/listings
but your request was for backend/api/listings
is nginx routing the backend
part and stripping it?
actually, its clearly not
since you are seeing backend/api/listings
in your kestrel logs
thats your issue, your urls dont match upyeah they didnt
ty
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.