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

Expired api key => white screen #90

Open
llx001 opened this issue Mar 1, 2024 · 8 comments
Open

Expired api key => white screen #90

llx001 opened this issue Mar 1, 2024 · 8 comments

Comments

@llx001
Copy link

llx001 commented Mar 1, 2024

Hello,
It looks your API token is no longer valid for MapBox.
The result is no map data and a white screen.

This is the js error:
Object { status: 401, url: "https://api.mapbox.com/styles/v1/mapbox/outdoors-v11?access_token= {{APIKEY}}", name: "e", message: "Unauthorized: you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes", stack: "" }
evented.js:140:20

I have censored the api key i am not sure if its public or not.

@gilberdn90
Copy link

Where do you add the new Access token? I'm new to all this. and thanks

@sysoppl
Copy link
Owner

sysoppl commented Mar 7, 2024

Sorry to hear, mapbox is paid service, and there was about 10000 users monthly visiting this generator. I was thinking about changing it or self hosting in #21 but this project for me is dead, so any PRs are welcome. If you want to use it, clone it and change API key here:

mapboxgl.accessToken = 'pk.eyJ1IjoiYmVydGRldm4iLCJhIjoiY2t2dXF1ZGhyMHlteTJ2bzJjZzE3M24xOCJ9.J5skknTRyh-6RoDWD4kw2w';
then you need to self host it.

@gilberdn90
Copy link

gilberdn90 commented Mar 7, 2024

Ok, because I have an Access token. And thank you for replying. When you say host, do you mean to run it?
Can you have the site make it so people can buy their own Access token and apply it?

@gilberdn90
Copy link

Where do we support?

@sysoppl sysoppl added wontfix This will not be worked on and removed wontfix This will not be worked on labels Mar 7, 2024
@sysoppl
Copy link
Owner

sysoppl commented Mar 7, 2024

Hmm. Yeah, I like the idea of users getting own mapbox token and pasting it to the app. I might add this

@gilberdn90
Copy link

Takes the pressure off you!

@OceanHotelVibes
Copy link

Sorry to hear, mapbox is paid service, and there was about 10000 users monthly visiting this generator. I was thinking about changing it or self hosting in #21 but this project for me is dead, so any PRs are welcome. If you want to use it, clone it and change API key here:

mapboxgl.accessToken = 'pk.eyJ1IjoiYmVydGRldm4iLCJhIjoiY2t2dXF1ZGhyMHlteTJ2bzJjZzE3M24xOCJ9.J5skknTRyh-6RoDWD4kw2w';

then you need to self host it.

use this key for now: pk.eyJ1IjoiYmVydGRldm4iLCJhIjoiY2t2dXF1ZGhyMHlteTJ2bzJjZzE3M24xOCJ9.J5skknTRyh-6RoDWD4kw2w

@ifangc
Copy link

ifangc commented Apr 8, 2024

How should I fix this?How to clone it and change API key?and thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants