Cesium Ion reporting 401 Unauthorized

I am getting a 401 error every time I use a token from my Ion account.

I am on the following versions, and at present the project requires me to stay on 1.117.0
@cesium/engine: 9.1.0
@cesium/widgets: 6.1.0
cesium: 1.117.0

Curiously, I am seeing this at the bottom of the screen This application is using Cesium’s default ion access token. Please assign Cesium.Ion.defaultAccessToken with an access token from your ion account before making any Cesium API calls. You can sign up for a free ion account at https://cesium.com.

But, ironically, I am not using Cesium’s default ion access token, I have specified one I generated.

Update: I am actually seeing 2 requests for access and I don’t know why, the first is successful and uses the token I provided, the second is failing and using maybe the defaultAccessToken for the current version of Cesium.

Hello there,

Thanks for reaching out about this. We want to confirm what the issue may be, and get it fixed if appropriate.

I am not able to replicate this behavior in an environment like Sandcastle. It may have to do with your specific build configuration. Would you be able to provide a minimal code example which replicates the issue?

Thank you!
Gabby

Hi Gabby, unfortunately I am unable to provide a sample. This integration is part of a larger project framework for which I do not own the source. I did reach out over email to see if we could coordinate something.

Thanks,
Nick