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

Exception in Windows build #41

Closed
radioegor146 opened this issue Oct 23, 2024 · 4 comments
Closed

Exception in Windows build #41

radioegor146 opened this issue Oct 23, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@radioegor146
Copy link

Latest windows build (V1.1 to be precise) throws this error when ran:

Unhandled exception. System.InvalidOperationException: Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property.
   at System.Text.Json.ThrowHelper.ThrowInvalidOperationException_JsonSerializerIsReflectionDisabled()
   at System.Text.Json.JsonSerializerOptions.ConfigureForJsonSerializer()
   at System.Text.Json.JsonSerializerOptions.MakeReadOnly(Boolean)
   at System.Text.Json.JsonSerializer.GetTypeInfo(JsonSerializerOptions, Type)
   at System.Text.Json.JsonSerializer.GetTypeInfo[T](JsonSerializerOptions)
   at System.Text.Json.JsonSerializer.DeserializeAsync[TValue](Stream , JsonSerializerOptions , CancellationToken )
   at System.Net.Http.Json.HttpClientJsonExtensions.<>c__9`1.<FromJsonAsyncCore>b__9_0(Stream stream, JsonSerializerOptions options, CancellationToken cancellation)
   at System.Net.Http.Json.HttpClientJsonExtensions.<FromJsonAsyncCore>g__Core|12_0[TValue,TJsonOptions](HttpClient, Task`1, Boolean, CancellationTokenSource, Func`4, TJsonOptions, CancellationToken)
   at YandexKeyExtractor.WebHandler.TryGetCountry()
   at Program.<<Main>$>g__RetrieveBackup|0_0(WebHandler)
   at Program.<Main>$(String[])
   at Program.<Main>(String[])
@ezhevita ezhevita added the bug Something isn't working label Oct 23, 2024
@ezhevita ezhevita self-assigned this Oct 23, 2024
@ezhevita
Copy link
Owner

ezhevita commented Oct 23, 2024

Hi, thanks for the report! I'll see what I can do.

@ezhevita
Copy link
Owner

Can you please try the latest CI build? You can download it from here: https://github.com/ezhevita/YandexKeyExtractor/actions/runs/11487076552

@radioegor146
Copy link
Author

Yep, works flawlessly!

@ezhevita
Copy link
Owner

Fixed in v1.1.1

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

2 participants