angular-cesium icon indicating copy to clipboard operation
angular-cesium copied to clipboard

Invalid Access Token

Open GorkemSavran opened this issue 3 years ago • 3 comments

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

GorkemSavran avatar Oct 18 '21 07:10 GorkemSavran

Have you tried updating your Cesium version?

edingeldein0616 avatar Dec 03 '21 17:12 edingeldein0616

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

bentfc avatar Mar 11 '22 09:03 bentfc

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.

zblcool avatar Jul 04 '22 12:07 zblcool