Kareadita / Kavita

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
http://www.kavitareader.com
GNU General Public License v3.0
5.83k stars 295 forks source link

Unable to select interface language #2272

Closed kofzhanganguo closed 11 months ago

kofzhanganguo commented 11 months ago

image

Culture is not supported. (Parameter 'name') pt_BR is an invalid culture identifier.

Unable to select language option, I cannot select interface language for Simplified Chinese

majora2007 commented 11 months ago

What version of Kavita are you on?

kofzhanganguo commented 11 months ago

What version of Kavita are you on?

v0.7.8 Windows X64

kofzhanganguo commented 11 months ago

Unable to select any interface language. I am a Simplified Chinese user and cannot choose Simplified Chinese language.

majora2007 commented 11 months ago

Hmm I was able to do it on our demo which runs v0.7.8 as well: image

What browser are you using? That culture tag is for Portugese. Can you make sure you chose Chinese (Simplified) and not scrolled through other languages?

kofzhanganguo commented 11 months ago

Chrome version 102.0.5005.167 browser

Havokdan commented 11 months ago

Ok for me.

kofzhanganguo commented 11 months ago

image image Using Microsoft's latest browser is also unable to select any language settings

kofzhanganguo commented 11 months ago

[20:23:05 INF] Generating JWT TokenKey for encrypting user sessions... [Kavita] [2023-09-05 20:23:28.965 +08:00 1] [Information] API.Services.TaskScheduler Scheduling reoccurring tasks [Kavita] [2023-09-05 20:23:29.107 +08:00 1] [Debug] API.Services.TaskScheduler Scheduling Scan Library Task for daily [Kavita] [2023-09-05 20:23:29.461 +08:00 1] [Debug] API.Services.TaskScheduler Scheduling Backup Task for daily [Kavita] [2023-09-05 20:23:29.573 +08:00 1] [Information] API.Services.TaskScheduler Scheduling Auto-Update tasks [Kavita] [2023-09-05 20:23:29.580 +08:00 1] [Debug] API.Services.TaskScheduler Scheduling stat collection daily [Kavita] [2023-09-05 20:23:29.763 +08:00 9] [Information] API.Program Running Migrations [Kavita] [2023-09-05 20:23:29.869 +08:00 9] [Fatal] API.Program Running MigrateLoginRoles migration [Kavita] [2023-09-05 20:23:29.908 +08:00 9] [Information] API.Program MigrateLoginRoles migration complete [Kavita] [2023-09-05 20:23:29.911 +08:00 9] [Fatal] API.Program Running MigrateRemoveWebPSettingRows migration - Please be patient, this may take some time. This is not an error [Kavita] [2023-09-05 20:23:29.913 +08:00 9] [Fatal] API.Program Running MigrateRemoveWebPSettingRows migration - complete. Nothing to do [Kavita] [2023-09-05 20:23:29.952 +08:00 9] [Fatal] API.Program Running MigrateExistingRatings migration - Please be patient, this may take some time. This is not an error [Kavita] [2023-09-05 20:23:29.967 +08:00 9] [Fatal] API.Program Running MigrateExistingRatings migration - Completed. This is not an error [Kavita] [2023-09-05 20:23:29.978 +08:00 9] [Information] API.Program Running Migrations - complete [Kavita] [2023-09-05 20:23:30.461 +08:00 1] [Information] API.Startup Starting with base url as /

Kavita - v0.7.8.0 [Kavita] [2023-09-05 20:23:30.593 +08:00 1] [Information] Microsoft.Hosting.Lifetime Application started. Press Ctrl+C to shut down. [Kavita] [2023-09-05 20:23:30.594 +08:00 1] [Information] Microsoft.Hosting.Lifetime Hosting environment: Production [Kavita] [2023-09-05 20:23:30.595 +08:00 1] [Information] Microsoft.Hosting.Lifetime Content root path: D:\Program Files\Kavita [Kavita] [2023-09-05 20:23:54.277 +08:00 45] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET / responded 200 in 135.6031 ms [Kavita] [2023-09-05 20:23:56.248 +08:00 44] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/theme responded 200 in 540.5574 ms [Kavita] [2023-09-05 20:23:56.969 +08:00 43] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/admin/exists responded 200 in 42.4631 ms [Kavita] [2023-09-05 20:23:57.105 +08:00 46] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/admin/exists responded 200 in 4.5076 ms [Kavita] [2023-09-05 20:24:12.807 +08:00 44] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /api/account/register responded 200 in 2396.6629 ms [Kavita] [2023-09-05 20:24:13.106 +08:00 44] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/admin/exists responded 200 in 110.8994 ms [Kavita] [2023-09-05 20:24:18.095 +08:00 43] [Information] API.Controllers.AccountController kofzhanganguo logged in at "2023-09-05T20:24:18.0890993+08:00" [Kavita] [2023-09-05 20:24:18.257 +08:00 43] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /api/account/login responded 200 in 589.8348 ms [Kavita] [2023-09-05 20:24:18.683 +08:00 46] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /hubs/messages/negotiate responded 200 in 16.3306 ms [Kavita] [2023-09-05 20:24:18.684 +08:00 10] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /hubs/messages/negotiate responded 200 in 18.1142 ms [Kavita] [2023-09-05 20:24:18.733 +08:00 43] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/license/valid-license responded 200 in 67.2255 ms [Kavita] [2023-09-05 20:24:18.787 +08:00 44] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/device responded 200 in 161.8705 ms [Kavita] [2023-09-05 20:24:18.787 +08:00 10] [Debug] API.Controllers.LibraryController Caching libraries for library_kofzhanganguo [Kavita] [2023-09-05 20:24:19.316 +08:00 10] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/library responded 200 in 690.2408 ms [Kavita] [2023-09-05 20:24:19.357 +08:00 52] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /api/series/recently-updated-series responded 200 in 559.1984 ms [Kavita] [2023-09-05 20:24:19.370 +08:00 46] [Debug] API.Controllers.LibraryController Caching libraries for library_kofzhanganguo [Kavita] [2023-09-05 20:24:19.385 +08:00 46] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/library responded 200 in 42.3233 ms [Kavita] [2023-09-05 20:24:19.535 +08:00 54] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /api/series/recently-added-v2 responded 200 in 712.6520 ms [Kavita] [2023-09-05 20:24:19.535 +08:00 51] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /api/series/on-deck responded 200 in 909.1315 ms [Kavita] [2023-09-05 20:24:25.553 +08:00 54] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/settings/log-levels responded 200 in 5.5103 ms [Kavita] [2023-09-05 20:24:25.553 +08:00 50] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/settings/task-frequencies responded 200 in 11.7700 ms [Kavita] [2023-09-05 20:24:25.706 +08:00 46] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/settings responded 200 in 162.8305 ms [Kavita] [2023-09-05 20:24:25.763 +08:00 50] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/server/server-info-slim responded 200 in 29.9587 ms [Kavita] [2023-09-05 20:24:29.790 +08:00 46] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/settings/opds-enabled responded 200 in 20.0090 ms [Kavita] [2023-09-05 20:24:29.792 +08:00 51] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/license/valid-license responded 200 in 6.9833 ms [Kavita] [2023-09-05 20:24:29.830 +08:00 50] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/account/opds-url responded 200 in 62.1702 ms [Kavita] [2023-09-05 20:24:29.857 +08:00 46] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/users/get-preferences responded 200 in 63.1482 ms [Kavita] [2023-09-05 20:24:29.954 +08:00 51] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/device responded 200 in 7.9491 ms [Kavita] [2023-09-05 20:24:29.961 +08:00 46] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/license/valid-license responded 200 in 6.7935 ms [Kavita] [2023-09-05 20:24:29.970 +08:00 44] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /hubs/messages/negotiate responded 200 in 3.4048 ms [Kavita] [2023-09-05 20:24:29.862 +08:00 54] [Error] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/locale responded 500 in 94.8670 ms System.Globalization.CultureNotFoundException: Culture is not supported. (Parameter 'name') pt_BR is an invalid culture identifier. at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride) at API.Controllers.LocaleController.<>c.b2_0(String c) in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Controllers\LocaleController.cs:line 22 at System.Linq.Utilities.<>c__DisplayClass2_0`3.b0(TSource x) at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.ToArray() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.OrderedEnumerable1.GetEnumerator()+MoveNext() at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonCollectionConverter2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCoreAsObject(Utf8JsonWriter writer, Object value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.JsonSerializer.WriteCore[TValue](Utf8JsonWriter writer, TValue& value, JsonTypeInfo jsonTypeInfo, WriteStack& state) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at API.Startup.<>c.<b4_5>d.MoveNext() in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Startup.cs:line 369 --- End of stack trace from previous location --- at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) [Kavita] [2023-09-05 20:24:30.033 +08:00 54] [Error] API.Middleware.ExceptionMiddleware There was an exception System.Globalization.CultureNotFoundException: Culture is not supported. (Parameter 'name') pt_BR is an invalid culture identifier. at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride) at API.Controllers.LocaleController.<>c.b2_0(String c) in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Controllers\LocaleController.cs:line 22 at System.Linq.Utilities.<>c__DisplayClass2_0`3.b0(TSource x) at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.ToArray() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.OrderedEnumerable1.GetEnumerator()+MoveNext() at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonCollectionConverter2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCoreAsObject(Utf8JsonWriter writer, Object value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.JsonSerializer.WriteCore[TValue](Utf8JsonWriter writer, TValue& value, JsonTypeInfo jsonTypeInfo, WriteStack& state) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at API.Startup.<>c.<b4_5>d.MoveNext() in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Startup.cs:line 369 --- End of stack trace from previous location --- at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context) at API.Middleware.ExceptionMiddleware.InvokeAsync(HttpContext context) in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Middleware\ExceptionMiddleware.cs:line 51 [Kavita] [2023-09-05 20:24:52.768 +08:00 44] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /preferences responded 200 in 43.5141 ms [Kavita] [2023-09-05 20:24:56.609 +08:00 51] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/theme responded 200 in 4.1797 ms [Kavita] [2023-09-05 20:24:57.939 +08:00 54] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/admin/exists responded 200 in 12.3884 ms [Kavita] [2023-09-05 20:25:12.334 +08:00 57] [Information] API.Controllers.AccountController kofzhanganguo logged in at "2023-09-05T20:25:12.3302481+08:00" [Kavita] [2023-09-05 20:25:12.356 +08:00 57] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /api/account/login responded 200 in 230.7932 ms [Kavita] [2023-09-05 20:25:12.398 +08:00 54] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/device responded 200 in 9.3564 ms [Kavita] [2023-09-05 20:25:12.412 +08:00 54] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/license/valid-license responded 200 in 3.6253 ms [Kavita] [2023-09-05 20:25:12.420 +08:00 55] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /hubs/messages/negotiate responded 200 in 2.0443 ms [Kavita] [2023-09-05 20:25:12.420 +08:00 57] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /hubs/messages/negotiate responded 200 in 3.4349 ms [Kavita] [2023-09-05 20:25:12.585 +08:00 57] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/account/opds-url responded 200 in 5.5109 ms [Kavita] [2023-09-05 20:25:12.590 +08:00 50] [Debug] API.Controllers.LibraryController Caching libraries for library_kofzhanganguo [Kavita] [2023-09-05 20:25:12.590 +08:00 54] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/settings/opds-enabled responded 200 in 6.3754 ms [Kavita] [2023-09-05 20:25:12.589 +08:00 55] [Error] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/locale responded 500 in 6.4098 ms System.Globalization.CultureNotFoundException: Culture is not supported. (Parameter 'name') pt_BR is an invalid culture identifier. at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride) at API.Controllers.LocaleController.<>c.b2_0(String c) in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Controllers\LocaleController.cs:line 22 at System.Linq.Utilities.<>c__DisplayClass2_0`3.b0(TSource x) at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.ToArray() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.OrderedEnumerable1.GetEnumerator()+MoveNext() at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonCollectionConverter2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCoreAsObject(Utf8JsonWriter writer, Object value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.JsonSerializer.WriteCore[TValue](Utf8JsonWriter writer, TValue& value, JsonTypeInfo jsonTypeInfo, WriteStack& state) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at API.Startup.<>c.<b4_5>d.MoveNext() in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Startup.cs:line 370 --- End of stack trace from previous location --- at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) [Kavita] [2023-09-05 20:25:12.594 +08:00 51] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/license/valid-license responded 200 in 2.5229 ms [Kavita] [2023-09-05 20:25:12.634 +08:00 50] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/library responded 200 in 47.8340 ms [Kavita] [2023-09-05 20:25:12.717 +08:00 55] [Error] API.Middleware.ExceptionMiddleware There was an exception System.Globalization.CultureNotFoundException: Culture is not supported. (Parameter 'name') pt_BR is an invalid culture identifier. at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride) at API.Controllers.LocaleController.<>c.b2_0(String c) in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Controllers\LocaleController.cs:line 22 at System.Linq.Utilities.<>c__DisplayClass2_0`3.b0(TSource x) at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.ToArray() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.OrderedEnumerable1.GetEnumerator()+MoveNext() at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonCollectionConverter2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCoreAsObject(Utf8JsonWriter writer, Object value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.JsonSerializer.WriteCore[TValue](Utf8JsonWriter writer, TValue& value, JsonTypeInfo jsonTypeInfo, WriteStack& state) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at API.Startup.<>c.<b4_5>d.MoveNext() in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Startup.cs:line 370 --- End of stack trace from previous location --- at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context) at API.Middleware.ExceptionMiddleware.InvokeAsync(HttpContext context) in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Middleware\ExceptionMiddleware.cs:line 51 [Kavita] [2023-09-05 20:25:12.773 +08:00 51] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/users/get-preferences responded 200 in 9.6327 ms [Kavita] [2023-09-05 20:25:12.777 +08:00 57] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/account/opds-url responded 200 in 27.4447 ms [Kavita] [2023-09-05 20:25:12.783 +08:00 55] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/settings/opds-enabled responded 200 in 4.1530 ms [Kavita] [2023-09-05 20:25:12.787 +08:00 50] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/license/valid-license responded 200 in 9.4543 ms [Kavita] [2023-09-05 20:25:12.869 +08:00 57] [Error] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/locale responded 500 in 18.3936 ms System.Globalization.CultureNotFoundException: Culture is not supported. (Parameter 'name') pt_BR is an invalid culture identifier. at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride) at API.Controllers.LocaleController.<>c.b2_0(String c) in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Controllers\LocaleController.cs:line 22 at System.Linq.Utilities.<>c__DisplayClass2_0`3.b0(TSource x) at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.ToArray() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.OrderedEnumerable1.GetEnumerator()+MoveNext() at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonCollectionConverter2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCoreAsObject(Utf8JsonWriter writer, Object value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.JsonSerializer.WriteCore[TValue](Utf8JsonWriter writer, TValue& value, JsonTypeInfo jsonTypeInfo, WriteStack& state) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at API.Startup.<>c.<b4_5>d.MoveNext() in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Startup.cs:line 370 --- End of stack trace from previous location --- at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) [Kavita] [2023-09-05 20:25:12.975 +08:00 57] [Error] API.Middleware.ExceptionMiddleware There was an exception System.Globalization.CultureNotFoundException: Culture is not supported. (Parameter 'name') pt_BR is an invalid culture identifier. at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride) at API.Controllers.LocaleController.<>c.b2_0(String c) in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Controllers\LocaleController.cs:line 22 at System.Linq.Utilities.<>c__DisplayClass2_0`3.b0(TSource x) at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.ToArray() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.OrderedEnumerable1.GetEnumerator()+MoveNext() at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonCollectionConverter2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCoreAsObject(Utf8JsonWriter writer, Object value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.JsonSerializer.WriteCore[TValue](Utf8JsonWriter writer, TValue& value, JsonTypeInfo jsonTypeInfo, WriteStack& state) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at API.Startup.<>c.<b4_5>d.MoveNext() in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Startup.cs:line 370 --- End of stack trace from previous location --- at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context) at API.Middleware.ExceptionMiddleware.InvokeAsync(HttpContext context) in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Middleware\ExceptionMiddleware.cs:line 51 [Kavita] [2023-09-05 20:25:13.157 +08:00 50] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/device responded 200 in 2.8800 ms [Kavita] [2023-09-05 20:25:13.161 +08:00 54] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/license/valid-license responded 200 in 2.7001 ms [Kavita] [2023-09-05 20:25:13.170 +08:00 51] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /hubs/messages/negotiate responded 200 in 1.5068 ms [Kavita] [2023-09-05 20:25:22.228 +08:00 57] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/settings/task-frequencies responded 200 in 4.2623 ms [Kavita] [2023-09-05 20:25:22.234 +08:00 54] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/settings/log-levels responded 200 in 6.4524 ms [Kavita] [2023-09-05 20:25:22.236 +08:00 51] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/settings responded 200 in 7.0301 ms [Kavita] [2023-09-05 20:25:22.346 +08:00 51] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/server/server-info-slim responded 200 in 3.5509 ms [Kavita] [2023-09-05 20:25:25.678 +08:00 54] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/account/opds-url responded 200 in 9.1637 ms [Kavita] [2023-09-05 20:25:25.677 +08:00 50] [Error] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/locale responded 500 in 6.5806 ms System.Globalization.CultureNotFoundException: Culture is not supported. (Parameter 'name') pt_BR is an invalid culture identifier. at System.Globalization.CultureInfo..ctor(String name) at API.Controllers.LocaleController.<>c.b2_0(String c) in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Controllers\LocaleController.cs:line 22 at System.Linq.Utilities.<>c__DisplayClass2_0`3.b0(TSource x) at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.ToArray() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.OrderedEnumerable1.GetEnumerator()+MoveNext() at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonCollectionConverter2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCoreAsObject(Utf8JsonWriter writer, Object value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.JsonSerializer.WriteCore[TValue](Utf8JsonWriter writer, TValue& value, JsonTypeInfo jsonTypeInfo, WriteStack& state) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at API.Startup.<>c.<b4_5>d.MoveNext() in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Startup.cs:line 370 --- End of stack trace from previous location --- at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) [Kavita] [2023-09-05 20:25:25.693 +08:00 55] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/license/valid-license responded 200 in 3.8143 ms [Kavita] [2023-09-05 20:25:25.710 +08:00 57] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/settings/opds-enabled responded 200 in 7.6346 ms [Kavita] [2023-09-05 20:25:25.799 +08:00 51] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/users/get-preferences responded 200 in 7.2761 ms [Kavita] [2023-09-05 20:25:25.801 +08:00 50] [Error] API.Middleware.ExceptionMiddleware There was an exception System.Globalization.CultureNotFoundException: Culture is not supported. (Parameter 'name') pt_BR is an invalid culture identifier. at System.Globalization.CultureInfo..ctor(String name) at API.Controllers.LocaleController.<>c.b2_0(String c) in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Controllers\LocaleController.cs:line 22 at System.Linq.Utilities.<>c__DisplayClass2_0`3.b0(TSource x) at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.ToArray() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.OrderedEnumerable1.GetEnumerator()+MoveNext() at System.Text.Json.Serialization.Converters.IEnumerableDefaultConverter2.OnWriteResume(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonCollectionConverter2.OnTryWrite(Utf8JsonWriter writer, TCollection value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.TryWrite(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCore(Utf8JsonWriter writer, T& value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.Serialization.JsonConverter1.WriteCoreAsObject(Utf8JsonWriter writer, Object value, JsonSerializerOptions options, WriteStack& state) at System.Text.Json.JsonSerializer.WriteCore[TValue](Utf8JsonWriter writer, TValue& value, JsonTypeInfo jsonTypeInfo, WriteStack& state) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at System.Text.Json.JsonSerializer.WriteStreamAsync[TValue](Stream utf8Json, TValue value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken) at Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at API.Startup.<>c.<b4_5>d.MoveNext() in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Startup.cs:line 370 --- End of stack trace from previous location --- at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context) at API.Middleware.ExceptionMiddleware.InvokeAsync(HttpContext context) in C:\Users\josep\Documents\Projects\KavitaOrg\Kavita\API\Middleware\ExceptionMiddleware.cs:line 51 [Kavita] [2023-09-05 20:25:25.942 +08:00 60] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/device responded 200 in 6.6904 ms [Kavita] [2023-09-05 20:25:25.951 +08:00 58] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/license/valid-license responded 200 in 5.8367 ms [Kavita] [2023-09-05 20:25:25.992 +08:00 60] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /hubs/messages/negotiate responded 200 in 1.3084 ms

majora2007 commented 11 months ago

Maybe on your OS, the locale for that doesn't exist, so .net isn't understanding how to translate the locale tag?

Can you open the dropdown and see all the options or does that error appear when navigating to that page?

kofzhanganguo commented 11 months ago

https://github.com/Kareadita/Kavita/assets/32073931/d3bec0a6-6d33-46c5-b1e8-c9ea52462bb2

I recorded a video and I don't know what caused the problem of not being able to select the language option.

majora2007 commented 11 months ago

Yes, this seems to be a locale issue from your OS. I'll have to investigate it a bit further.

kofzhanganguo commented 11 months ago

It is hoped that the software will not automatically obtain the regional settings of the country and region, and let the user choose the language setting of their own country, otherwise I don't understand why the language option cannot be set.

majora2007 commented 11 months ago

That is not what I mean. I take the language codes and generate the full name, so zh_Hans becomes Chinese (Simplified) so you can choose it. On my system, this works fine.

But since your OS is Chinese, somehow the pt_BR isn't translating into Portuguese (Brazil). That is the issue that needs investigating.

kofzhanganguo commented 11 months ago

Well, mine is a Simplified Chinese Windows operating system, I hope the next version can solve this problem, thanks.