I’m using SpeckleCore 2.14.2 (nuget) and calling the GetUserInfo method which is returning the following error:
TypeLoadException: Method ‘DeserializeToWebsocketResponse’ in type ‘Speckle.Core.Api.GraphQL.Serializer.NewtonsoftJsonSerializer’ from assembly ‘SpeckleCore2, Version=2.14.2.10781, Culture=neutral, PublicKeyToken=null’ does not have an implementation.
I did a search on github issues but don’t see anyone else encountering this issue, and looking at the source code there does seem to be an implementation for this method - anyone able to shed some light on this?
Hey @teocomi - it’s being run in a standalone app (ASP.NET). The method is being called in the middleware for the auth flow after fetching a token.
Here’s a snippet from the method:
using var tokens = await ExchangeCodeAsync(codeExchangeContext);
if (tokens.Error != null)
{
return HandleRequestResult.Fail(tokens.Error);
}
if (string.IsNullOrEmpty(tokens.AccessToken))
{
return HandleRequestResult.Fail("Failed to retrieve access token.");
}
var identity = new ClaimsIdentity(ClaimsIssuer);
var user = Speckle.Core.Credentials.AccountManager.GetUserInfo(tokens.AccessToken, "https://speckle.xyz");
var ticket = await CreateTicketAsync(identity, new AuthenticationProperties(), tokens);
if (ticket != null)
{
return HandleRequestResult.Success(ticket);
}
else
{
return HandleRequestResult.Fail("Failed to retrieve user information from remote server.");
}