mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
11.22k stars 2.23k forks source link

Receiving error 401: Unauthorized #13325

Open ponichWebKnight opened 2 days ago

ponichWebKnight commented 2 days ago

Getting 401 error for next requests: 1) https://events.mapbox.com/events/v2?access_token={accessToken} Events are - "map.load", "gljs.performance", "style.load". 2) https://api.mapbox.com/map-sessions/v1?sku={SKU}&access_token={accessToken}

Allowed domains are set correctly via Admin Panel.

The access token is correct - map data is loaded as expected. However, these requests are sent by the lib itself and I cannot figure out why I am getting these errors.

ponichWebKnight commented 1 day ago

In addition

Map is loaded and presented correctly. The issue does not affect the map lifecycle and functionality. "events.mapbox.com/events" request is a POST type, and /map-sessions/ is a GET.