[Unstable] Notifications Serialisation error. #1866

Closed
opened 2026-02-06 21:26:05 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @BaronGreenback on GitHub (Jul 13, 2020).

Changing the state of any notifications creates this error.

[16:55:02] [ERR] [107] Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware: An unhandled exception has occurred while executing the request.
System.AggregateException: Error while handling request exception (There was an error reflecting type 'MediaBrowser.Model.Notifications.NotificationOptions'.) (There was an error reflecting type 'MediaBrowser.Model.Notifications.NotificationOptions'.)
---> System.InvalidOperationException: There was an error reflecting type 'MediaBrowser.Model.Notifications.NotificationOptions'.
---> System.InvalidOperationException: Cannot serialize member 'MediaBrowser.Model.Notifications.NotificationOptions.Options' of type 'MediaBrowser.Model.Notifications.NotificationOption[]', see inner exception for more details.
---> System.InvalidOperationException: MediaBrowser.Model.Notifications.NotificationOption cannot be serialized because it does not have a parameterless constructor.
--- End of inner exception stack trace ---

Originally created by @BaronGreenback on GitHub (Jul 13, 2020). Changing the state of any notifications creates this error. [16:55:02] [ERR] [107] Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware: An unhandled exception has occurred while executing the request. System.AggregateException: Error while handling request exception (There was an error reflecting type 'MediaBrowser.Model.Notifications.NotificationOptions'.) (There was an error reflecting type 'MediaBrowser.Model.Notifications.NotificationOptions'.) ---> System.InvalidOperationException: There was an error reflecting type 'MediaBrowser.Model.Notifications.NotificationOptions'. ---> System.InvalidOperationException: Cannot serialize member 'MediaBrowser.Model.Notifications.NotificationOptions.Options' of type 'MediaBrowser.Model.Notifications.NotificationOption[]', see inner exception for more details. ---> System.InvalidOperationException: MediaBrowser.Model.Notifications.NotificationOption cannot be serialized because it does not have a parameterless constructor. --- End of inner exception stack trace ---
OVERLORD added the bug label 2026-02-06 21:26:05 +03:00
Author
Owner

@BaronGreenback commented on GitHub (Jul 13, 2020):

Fixed in PR 3552

@BaronGreenback commented on GitHub (Jul 13, 2020): Fixed in PR 3552
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#1866