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.
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=220.127.116.11, 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.