I've changed nothing, but am getting a 401() error today

1. A concise explanation of the problem you’re experiencing.

The imagery for the globe does not load. I have changed nothing. All my points/billboards are plotted on the screen as if the globe is there, but the imagery of earth is not loaded in.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

****Cesium.js line 12255 is where it is blowing up:

xhr.send(data); - Failed to load resource, the server responded with a status of 401.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I had a really cool app, which I think was fully dependent on the Bing Default Key. I just need the basic imagery for the globe.

This is what I have been using.

Cesium.BingMapsApi.defaultKey = ‘ArJaYTKZIfAhhvJNLZZF4wgK-AqJVRkC1nmLfDgkqmWNDV2MDy9LGi_21EUALmyb’;

“use strict”;

4. The Cesium version you’re using, your operating system and browser.

I have an MSI labtop with windows 10. Using Chrome Browser. I think I am using Cesium 1.48



This is the what is getting called. When I type it in my browser I get: {“code”:“InvalidCredentials”,“message”:“Invalid access token”}

But I am using the base token and have changed nothing and it all worked last week.

So the default Bing key was something that just the Cesium demo’s use, and to use the Bing API in your own apps you’d have to go get your own key from their API portal.

Now the default is that Bing imagery is served through Cesium ion (http://cesium.com/ion) but if you’re deploying your own app, again, you’ll need to create an account and get your own access token. So I would just create an account on ion, grab your access token (https://cesium.com/ion/tokens) and then set it with:

Cesium.Ion.defaultAccessToken = <your-token>
1 Like

Done and WORKING!!! Thank you.