Ever since upgrading to podman v5 I have had trouble with the "Pick frontend version" page taking forever and eventually timing out. I have waited for a couple of updates with the hope that it would resolve itself, but seeing as this is still an issue for me in podman v5.1 I have made this workaround.
The issue seems to be that when trying to connect to a port on host.docker.internal that does not have a server running it just tries to connect forever until eventually timing out after 100 seconds, throwing a TaskCanceledException which is not caught in main so the page eventually fails to load. I have not figured out why the requests don't simply fail instantly. To work around this problem I catch the TaskCanceledException, use a very low timeout for the HttpClient, and run the requests in parallel so that it only takes half a second to fail all of the other requests where a frontend server is not running.
If someone else uses podman v5 and don't have this issue then maybe its just my machine, and if we figure it out we could close this.
Related Issue(s)
{issue number}
Verification
[x] Your code builds clean without any errors or warnings
[x] Manual testing done (required)
[ ] Relevant automated test added (if you find this hard, leave it and we'll help out)
[ ] All tests run green
Documentation
[ ] User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)
Description
Ever since upgrading to podman v5 I have had trouble with the "Pick frontend version" page taking forever and eventually timing out. I have waited for a couple of updates with the hope that it would resolve itself, but seeing as this is still an issue for me in podman v5.1 I have made this workaround.
The issue seems to be that when trying to connect to a port on
host.docker.internal
that does not have a server running it just tries to connect forever until eventually timing out after 100 seconds, throwing aTaskCanceledException
which is not caught inmain
so the page eventually fails to load. I have not figured out why the requests don't simply fail instantly. To work around this problem I catch theTaskCanceledException
, use a very low timeout for theHttpClient
, and run the requests in parallel so that it only takes half a second to fail all of the other requests where a frontend server is not running.If someone else uses podman v5 and don't have this issue then maybe its just my machine, and if we figure it out we could close this.
Related Issue(s)
{issue number}
Verification
Documentation