-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
kind/bugSomething isn't workingSomething isn't working
Description
Description of the bug
I did the following:
- Created a test application as outlined in https://docs.altinn.studio/nb/app/app-dev-course/
- Cloned app-localtest and followed the podman instructions in README.md
- I tried opening http://local.altinn.cloud:8000/ but got an error message
An exception occured while fetching applicationData No application running on http://host.docker.internal:5005 Please start your an app on this adress. Typically run the following command in an app directory. dotnet run - However the application has been started with "dotnet run" as outlined in README.md and is running, listening to port 5005
- Tried opening http://host.docker.internal:5005 with curl but got "could not resolve host host.docker.internal":
EMEAAD+sbang@AAP-5CG32757DH:~$ curl --verbose http://host.docker.internal:5005 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Could not resolve host: host.docker.internal * Closing connection curl: (6) Could not resolve host: host.docker.internal EMEAAD+sbang@AAP-5CG32757DH:~$ - I tried adding host.docker.internal as an alias for localhost in c:\Windows\System32\Drivers\etc\hosts
# localhost name resolution is handled within DNS itself. 127.0.0.1 localhost, host.docker.internal ::1 localhost, host.docker.internal - This made http://host.docker.internal:5005 work with curl (but got 404 on the root)
- But http://local.altinn.cloud:8000/ still got the same error message
- Deleted the containers in podman and ran "podman compose --file podman-compose.yml up -d --build" again
- After the containers were up, tried http://local.altinn.cloud:8000/ but still got the same error message
Steps To Reproduce
- Create an Altinn test application
- Clone test application to a windows 11 machine
- Install podman desktop as outlined in the app-localtest README
- Run app-localtest with podman as outlined in the app-localtest README
- Try opening http://local.altinn.cloud:8000/ in a web browser and get the error message
Additional Information
Windows 11 Enterprise, Microsoft .Net SDK 6.0.418, podman desktop 1.7.1, podman 4.9.2
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working