Skip to content

Map loading is sometimes flaky (makes PDF time out) #3250

Open
@bjosttveit

Description

@bjosttveit

Description of the bug

Slack: https://altinn.slack.com/archives/C02EJ9HKQA3/p1744023729225749

Sometimes map tiles from Kartverket fail to load as seen in the image below, you can see the open-streetmap layer underneath in two of the tiles:
Image

For some reason, the browser seems to use 60 seconds before it triggers the error-event, which means that the PDF will time out before this time. It is a little hard to reproduce, I was able to make it happen relatively consistently by having several maps with a "new" location each time, so I suspect it has something to do with Kartverkets own caching, since it usually works consistently in subsequent attempts.

Workarounds

  • Don't use kartverkets map layer and only use the one from open-streetmap
  • Use old map summary for PDF if you select a location. (this will only show coordinates and not render the actual map)

Steps To Reproduce

  1. Have many map components where the map is visible in PDF (summary2)
  2. If you are (un)lucky you will see that a few random tiles from Kartverket fails to load after a very long time with 504 gateway timeout.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions