Skip to content
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

FormatException when obtaining a session for the first time #34

Closed
psu-de opened this issue Feb 20, 2024 · 0 comments
Closed

FormatException when obtaining a session for the first time #34

psu-de opened this issue Feb 20, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@psu-de
Copy link
Owner

psu-de commented Feb 20, 2024

When trying to obtain a new online session for a new email for the first time, this exception is thrown.
The session however is saved and it works the next time.

Unhandled exception. System.FormatException: String '2024-02-22T15:56:54.142272440Z' was not recognized as a valid DateTime.
   at System.DateTime.ParseExact(String s, String format, IFormatProvider provider)
   at MineSharp.Auth.Responses.PlayerCertificate.FromBlob(CertificateBlob blob) in /_/Components/MineSharp.Auth/Responses/PlayerCertificate.cs:line 83
   at MineSharp.Auth.MinecraftApi.FetchCertificates(String token) in /_/Components/MineSharp.Auth/MinecraftApi.cs:line 98
   at MineSharp.Auth.MicrosoftAuth.Login(String username, DeviceCodeHandler handler, MinecraftApi api) in /_/Components/MineSharp.Auth/MicrosoftAuth.cs:line 92
   at MineSharp.Bot.BotBuilder.CreateAsync() in /_/MineSharp.Bot/BotBuilder.cs:line 228
   at Program.<Main>$(String[] args) in /home/psu/projects/Testing/MineSharpNugetTests/MineSharpNugetTests/Program.cs:line 6
   at Program.<Main>(String[] args)

@psu-de psu-de added the bug Something isn't working label Feb 20, 2024
@psu-de psu-de self-assigned this Feb 20, 2024
@psu-de psu-de closed this as completed in 091d617 Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant