These are the docs for 13.8, an old version of SpatialOS. The docs for this version are frozen: we do not correct, update or republish them. 14.5 is the newest →


Unauthenticated error

Unhandled Exception: Grpc.Core.RpcException: Status(StatusCode=Unauthenticated, Detail="Getting metadata from plugin failed with error: Exception occured in metadata credentials plugin.")

This error arises because the refresh token the Platform SDK is using has either expired or is invalid. As a result, the SDK is unable to authenticate with the SpatialOS platform.

If you’re providing the refresh token either as a string or as a file, check if it’s the right string/file and if it’s still valid.

If you’re relying on the SDK reading your refresh token from the default location (mentioned in the spatial auth login documentation), run spatial auth login to refresh the token.

Assembly version mismatch

If the project file is not configured correctly, you might get this error:

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Google.Apis.Auth, Version=, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab'

This occurs when one of the dependencies was compiled with a different version of an assembly that can’t be satisfied through dependency resolving.

You can fix it with either a specific assembly redirect binding or a generic tag <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> in your project file.

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums