Jan Krüger
Jan Krüger
CC#
Created by Jan Krüger on 11/9/2023 in #help
✅ Getting Error 400: Invalid Hostname when trying to access application in Docker container
I was able to fix it by setting the external hostname inside the hosts file of the container and pointing this to 127.0.0.1
4 replies
CC#
Created by Jan Krüger on 11/9/2023 in #help
✅ Getting Error 400: Invalid Hostname when trying to access application in Docker container
Hello no they are not in different containers.
4 replies
CC#
Created by Jan Krüger on 7/5/2023 in #help
Return NotFound with details
But this still feels like a lot of boilerplate to me. And its imho something very basic so I thought there might a already build solution for this
12 replies
CC#
Created by Jan Krüger on 7/5/2023 in #help
Return NotFound with details
I could go ahead and create exceptions for each status code, I guess.
12 replies
CC#
Created by Jan Krüger on 7/5/2023 in #help
Return NotFound with details
That is fine, tho I see this:
The following code configures the app to generate a problem details response for all HTTP client and server error responses that don't have a body content yet:
Do have an Idea how I could still attach details?
12 replies
CC#
Created by Jan Krüger on 7/5/2023 in #help
Return NotFound with details
Thank you for the resources, I'll take a look at that 🙂
12 replies
CC#
Created by Jan Krüger on 7/5/2023 in #help
Return NotFound with details
So I'd have to create an instance of that and then return that? But it feels like a lot of boiler code to add that at every controller and for every possible response code. I just wanted a consistent error response format to for all errors, with optional details
12 replies
CC#
Created by Jan Krüger on 7/5/2023 in #help
Return NotFound with details
Okay, but is there a way to convert that into a problem details?
12 replies