Page MenuHomePhabricator

Too Many Requests on loading complex dynamic maps
Open, LowPublic

Description

Recently, when I open pages with multi-region maps, the dinamic map fails to load, only the static fallback image is shown. The Kartographer extension tries to load GeoJSON for each regions, but some of them are rejected by the server 'maps.wikimedia.org' with response '429 Too Many Requests'.

It can be easily reproduced on the following pages:
https://en.wikivoyage.org/w/index.php?title=Paris&oldid=3897346#Districts
https://en.wikivoyage.org/w/index.php?title=Vienna&oldid=3897365#Districts
https://en.wikivoyage.org/w/index.php?title=Budapest&oldid=3895843#Districts

Possible solutions are:

  1. Configure the map server to allow more mapshape requests per client at once.
  2. Modify the client JavaScript code to not load mapshapes in parallel, just after each other.
  3. Implement some caching mechanism to reduce the number of requests, and reduce load.

Related discussion:
https://en.wikivoyage.org/wiki/Wikivoyage:Travellers'_pub#Too_Many_Requests_on_loading_complex_dynamic_maps

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 31 2019, 11:14 AM
LGoto triaged this task as Low priority.Jan 8 2020, 4:46 PM