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.

Updated about a year ago


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.