• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Media Scanning & Identification nullreference exception on '"Jellyfin.Api.Controllers.TvShowsController.GetSeasons

     
    • 0 Vote(s) - 0 Average

    nullreference exception on '"Jellyfin.Api.Controllers.TvShowsController.GetSeasons

    Kodi jellyfin fails with a 500 error trying to access seasons for a show
    prahal
    Offline

    Junior Member

    Posts: 19
    Threads: 6
    Joined: 2024 May
    Reputation: 1
    Country:France
    #1
    2024-07-18, 12:38 AM (This post was last modified: 2024-07-18, 12:59 AM by prahal. Edited 1 time in total.)
    Could you help me find why jellyfin always error oiut to kodi jellyfin plugin making it fail to sync the library that contains this tv show ?
    This tv shows displays and playback fine in jellyfin web.


    Jellyfin 10.9.7


    Jellyfin error on access to the seasons path by kodi jellyfin plugin
    Code:
    [2024-07-18 00:00:07.511 +00:00] [INF] [23] Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker: Executed action "Jellyfin.Api.Controllers.TvShowsController.GetSeasons (Jellyfin.Api)" in 8.4897ms
    [2024-07-18 00:00:07.512 +00:00] [INF] [23] Microsoft.AspNetCore.Routing.EndpointMiddleware: Executed endpoint '"Jellyfin.Api.Controllers.TvShowsController.GetSeasons (Jellyfin.Api)"'
    [2024-07-18 00:00:07.513 +00:00] [ERR] [23] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Shows/89aa0dc336d6fdc97cca14dc9cf86421/Seasons".
    System.NullReferenceException: Object reference not set to an instance of an object.
      at MediaBrowser.Controller.Entities.Folder.GetItems(InternalItemsQuery query)
      at MediaBrowser.Controller.Entities.Folder.GetRecursiveChildCount(User user)
      at MediaBrowser.Controller.Entities.Folder.FillUserDataDtoValues(UserItemDataDto dto, UserItemData userData, BaseItemDto itemDto, User user, DtoOptions fields)
      at Emby.Server.Implementations.Dto.DtoService.AttachUserSpecificInfo(BaseItemDto dto, BaseItem item, User user, DtoOptions options)
      at Emby.Server.Implementations.Dto.DtoService.GetBaseItemDtoInternal(BaseItem item, DtoOptions options, User user, BaseItem owner)
      at Emby.Server.Implementations.Dto.DtoService.GetBaseItemDtos(IReadOnlyList`1 items, DtoOptions options, User user, BaseItem owner)
      at Jellyfin.Api.Controllers.TvShowsController.GetSeasons(Guid seriesId, Nullable`1 userId, ItemFields[] fields, Nullable`1 isSpecialSeason, Nullable`1 isMissing, Nullable`1 adjacentTo, Nullable`1 enableImages, Nullable`1 imageTypeLimit, ImageType[] enableImageTypes, Nullable`1 enableUserData)
      at lambda_method907(Closure, Object, Object[])
      at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
      at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
      at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
      at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
    --- End of stack trace from previous location ---
      at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
      at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
      at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
    --- End of stack trace from previous location ---
      at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
      at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
      at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
      at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
    --- End of stack trace from previous location ---
      at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
      at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
      at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)
      at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
      at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
      at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
      at Jellyfin.Api.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
      at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
      at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
      at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
      at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
      at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
      at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
      at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
      at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
      at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
      at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
      at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
    [2024-07-18 00:00:07.515 +00:00] [INF] [23] Microsoft.AspNetCore.Hosting.Diagnostics: Request finished "HTTP/1.1" "GET" "http"://"192.168.10.48:8096""""/Shows/89aa0dc336d6fdc97cca14dc9cf86421/Seasons""?UserId=f0f250cf42a24340b5634087be9de6ad&EnableImages=True&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CTaglines%2CLocalTrailerCount%2COfficialRating%2CCumulativeRunTimeTicks%2CItemCounts%2CMetascore%2CAirTime%2CDateCreated%2CPeople%2COverview%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount%2CRecursiveItemCount%2CPrimaryImageAspectRatio" - 500 null "text/plain" 14.7975ms

    Kodi jellyfin logs
    Code:
    2024-07-18 01:39:47.290 T:1078    info <general>: JELLYFIN.jellyfin_kodi.jellyfin.http -> ERROR::jellyfin_kodi/jellyfin/http.py:131 500 Server Error: Internal Server Error for url: http://{jellyfin-server}/Shows/89aa0dc336d6fdc97cca14dc9cf86421/Seasons?UserId=f0f250cf42a24340b5634087be9de6ad&EnableImages=True&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CTaglines%2CLocalTrailerCount%2COfficialRating%2CCumulativeRunTimeTicks%2CItemCounts%2CMetascore%2CAirTime%2CDateCreated%2CPeople%2COverview%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount%2CRecursiveItemCount%2CPrimaryImageAspectRatio                                        2024-07-18 01:39:47.298 T:1078    info <general>: JELLYFIN.jellyfin_kodi.jellyfin.http -> ERROR::jellyfin_kodi/jellyfin/http.py:160 --[ 500 response ] 500 Server Error: Internal Server Error for url: http://{jellyfin-server}/Shows/89aa0dc336d6fdc97cca14dc9cf86421/Seasons?UserId=f0f250cf42a24340b5634087be9de6ad&EnableImages=True&Fields=Path%2CGenres%2CSortName%2CStudios%2CWriter%2CTaglines%2CLocalTrailerCount%2COfficialRating%2CCumulativeRunTimeTicks%2CItemCounts%2CMetascore%2CAirTime%2CDateCreated%2CPeople%2COverview%2CEtag%2CShortOverview%2CProductionLocations%2CTags%2CProviderIds%2CParentId%2CRemoteTrailers%2CSpecialEpisodeNumbers%2CMediaSources%2CVoteCount%2CRecursiveItemCount%2CPrimaryImageAspectRatio                      2024-07-18 01:39:47.305 T:1078    info <general>: JELLYFIN.jellyfin_kodi.database -> ERROR::jellyfin_kodi/database/__init__.py:171 type: <class 'TypeError'> value: 'NoneType' object is not subscriptable


    Attached Files
    .zip   jellyfin logs 20240718.zip (Size: 25.92 KB / Downloads: 321)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-07-18, 01:54 AM
    Does it only happen for a particular TV show or all shows? Can you provide examples of the folder and file structure?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    prahal
    Offline

    Junior Member

    Posts: 19
    Threads: 6
    Joined: 2024 May
    Reputation: 1
    Country:France
    #3
    2024-12-05, 09:34 PM
    From my notes this was a show I had only one episode of i.e. the simpsons season 11 "The Simpsons 11x12 - Britney Spears & Mr. Burns.asf"

    The structure was likely (I removed the file from the jellyfin storage back then to get the scanning from jellyfin kodi back to a working state) /media/movies/Series/Anime/Les Simpson (1989)/Season 11/<the asf file>
    with the library setup to import from /media/movies/Series/Anime/ i.e. Les Simpson (1989)/ was at the root.

    Somehow I miss the notification of your reply (maybe I forbot to check the box to get a notification).

    But I had too many other bugs with jellyfin, so I was unable to focus on only this one. Consider this issue as abandoned until better times, ieI deleted all excepted libraries config/root and config/plugins and did the setup anew. After that, I still have a few bug that prevents me from focusing back on this one.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode