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

Invalid Access Token #405

Open
GorkemSavran opened this issue Oct 18, 2021 · 3 comments
Open

Invalid Access Token #405

GorkemSavran opened this issue Oct 18, 2021 · 3 comments

Comments

@GorkemSavran
Copy link

https://cesium-map-app.web.app/map
This is my map application, running with no issues. Then it stopped working.
This is the error it gave me:

api.cesium.com/v1/assets/2/endpoint?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJkZjZmNmEzYy0zOWUwLTQzMTEtODNlMC1hY2EwZTRkNjQyNWUiLCJpZCI6MjU5LCJpYXQiOjE2Mjc5MTg0MjB9.VbQeEhbHiWrAH5KAAl1ynNkI4kHWxJdDi78IcCZxFk4:1 Failed to load resource: the server responded with a status of 401 ()

I updated angular-cesium package from 0.0.72 to 0.0.73 and tried to run it locally but it couldn't run either.

When I open the link in the error it says me this:
{
code: "InvalidCredentials",
message: "Invalid access token"
}

Thanks for advance.

Version

@edingeldein0616
Copy link

Have you tried updating your Cesium version?

@bentfc
Copy link

bentfc commented Mar 11, 2022

I don't know about the problem but giving your access token might not be the brightest idea ;)

@zblcool
Copy link

zblcool commented Jul 4, 2022

Normally, InvalidCredentials is about the version of cesium used in the project.
If you haven't provided a cesium access token in your projects --- your requests will use cesium default token.
BUT. This default token provided only works for two/three release.(It was used for testing) This means, if the cesium version on the server has been updated to , let's say v195, but your project is still using v193, then you might get this error. the solution is either make your dependency update to the latest version of cesium. or Use Cesium.Ion to create your own token which technically can use forever.( you can google Cesium.ion access token to see how to get one)
Follow are the responses in the community about tokens.
access-token-has-a-time-limit?
Cesium Api Key Getting 401 Unauthorized

However, if you have provided your Cesium.Ion private access token. then it might be because of something else.

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

4 participants