Page MenuHomePhabricator

Modules that create mapframe from QIDs receive external usage 403 error on Meta-wiki
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

Failed to load resource: the server responded with a status of 400 () https://maps.wikimedia.org/geopoint?getgeojson=1&ids=Q182984
  • Follow that URL and see the following:
Error: 403, Forbidden: Map tiles are restricted to Wikimedia and affiliated sites only. See https://wikitech.wikimedia.org/wiki/Maps/External_usage if you believe your usage supports the Movement. at Tue, 06 Jan 2026 16:24:55 GMT

What happens?:

Even though this mapframe, module, and template are all on a Wikimedia wiki, it appears to be running afoul of our external usage policy.

What should have happened instead?:

The map should load without 400/403 errors.

Other information (browser name/version, screenshots, etc.):

I am reusing the Wikidata birthday event map on Meta-wiki. I have made some modifications to the code so that each request is unique. This seems to get around the error messages.

Module: https://meta.wikimedia.org/wiki/Module:Wikipedia_25_birthday_event_map
Map: https://meta.wikimedia.org/wiki/Wikipedia_25/Events

Screenshot 2026-01-06 at 10.08.34 AM.png (2×3 px, 1 MB)

Event Timeline

It appears that the reason I'm seeing the 403 error is because I'm accessing it directly via my browser. So that's expected behavior. A misunderstanding on my part (one of many, I'm sure).

However, I'm noticing a strange temporary fix. If I purge the page where the mapframe appears, then refresh my browser window, almost all the pins appear. I still see a few (random) "https://maps.wikimedia.org/geopoint?getgeojson=1&ids=Q1234" appear in the console (where 1234 is a seemingly random QID).

After talking to Jhsoby, I made an update to the module, thinking perhaps that it was making incorrect calls to generate the pins. That change seemed to work for a hot second. The next day I pulled the map up in a private window and in a window where I was logged in.

Screenshot 2026-02-10 at 9.00.46 AM.png (2×5 px, 2 MB)

Private window (logged out) on the left, logged in on the right

Still seeing the error and inconsistency. Making no other changes, I refreshed the window on the right.

Screenshot 2026-02-10 at 9.01.13 AM.png (2×5 px, 2 MB)

Private window (logged out) on the left, logged in on the right