New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ApiException in Release mode (UWP) when calling LoginAsync #69
Comments
It's odd because MegaApiClient is not dependant of the compilation mode (Release version only in the nupkg) and the behavior should be the same between Debug or Release compilation. Maybe it's related to a dependency. Could you show the exception details (message, stack trace, error code)? |
@gpailler I know the package is in Release only mode, but keep in mind that when compiling a UWP app (not a library) in Release, the .NET Native compiler kicks in, and it can sometimes cause glitches (specifically with the metadata/serialization part of the code). Upon further investigation I think I found the cause of the issue: MegaApiClient.AuthInfos deserialized = JsonConvert.DeserializeObject<MegaApiClient.AuthInfos>(json); This seems to have fixed the issue, so you might want to add a disclaimer for the right deserialization method to use in the readme file so other user won't have to deal with this problem again 😄 |
Thanks. for the feedback I will update the README |
Description: I'm using the library in my UWP application and it works perfectly fine in debug mode. When compiled in Release mode though, I get the following exception:
It only happens in Release mode (when the .NET Native toolchain is enabled) when I call the
MegaApiClient.LoginAsync
method (I've double checked, the credentials are right).As a result, I can't login at all in Release mode.
MegaApiClient Version: the official 1.6.0 package from NuGet
Hope this helps! 😄
The text was updated successfully, but these errors were encountered: