Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receiving error 401: Unauthorized #13325

Open
ponichWebKnight opened this issue Nov 12, 2024 · 1 comment
Open

Receiving error 401: Unauthorized #13325

ponichWebKnight opened this issue Nov 12, 2024 · 1 comment
Labels
needs investigation 🔍 Issues that require further research (e.g. it's not clear whether it's GL JS or something else)

Comments

@ponichWebKnight
Copy link

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.

@stepankuzmin stepankuzmin added the needs investigation 🔍 Issues that require further research (e.g. it's not clear whether it's GL JS or something else) label Nov 12, 2024
@ponichWebKnight
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation 🔍 Issues that require further research (e.g. it's not clear whether it's GL JS or something else)
Projects
None yet
Development

No branches or pull requests

2 participants