Relative Content

Tag Archive for .netdockerhtmx

.NET / Docker Application Improper Configuration

Currently working on a containerized .NET 8 application with Docker, and using HTMX on the frontend to hit my API endpoints. Currently however I am getting 1 of 2 errors when trying to hit those endpoints locally on my running container. If I go to the local url http://[::]:8080/views/register/register.html and attempt to register, the only error I get is (blocked:other) in the status column in the chrome dev tools. When I hit the same endpoint but from http://localhost:8080/views/register/register.html (which I thought should be effectively the same url) the status column shows the error (failed)net::ERR_CONNECTION_RESET. I am assuming that this is an issue in one of my docker files / my docker compose file, but could use some assistance. It may also be worth noting that when I run just my .NET application locally, not through the container, I can hit my swagger page to test the endpoints, and can confirm they are working successfully, which is part of what leads me to believe it is something wrong in my docker configuration.