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

Desending is not a valid value for SortOrder #5510

Closed
1 task done
thermionic opened this issue May 14, 2024 · 9 comments
Closed
1 task done

Desending is not a valid value for SortOrder #5510

thermionic opened this issue May 14, 2024 · 9 comments
Labels
bug Something isn't working
Milestone

Comments

@thermionic
Copy link

thermionic commented May 14, 2024

Please describe your bug

While creating a log for a different issue, I saw what appears to be a possible typo in the default 10.9.1 configuration

I have not checked older versions.

Small snippet example as below, instance with 10 lines before and after below

System.FormatException: Desending is not a valid value for SortOrder.
 ---> System.ArgumentException: Requested value 'Desending' was not found.

No results shown in Github issues or the forum for "Desending"
No results in Google for "Desending is not a valid value for SortOrder"

Reproduction Steps

  1. clean deploy of Jellyfin 10.9.1 docker on Ubuntu 22.04
  2. connect with browser and set username and password for initial user
  3. login with initial user
  4. shut down docker container
  5. add logging.json with "MinimumLevel": "Debug"
  6. start up docker container
  7. connect with browser and add "Movie" library
  8. browse library
  9. extract log with docker log jellyfin > logofile.log
  10. see error in log as per description

Jellyfin Version

10.9.0

if other:

10.9.1 (not in dropdown)

Environment

- OS: Linux (Ubuntu 22.04)
- Linux Kernel: 6.5.0-35-generic
- Virtualization: Docker
- Clients: Browser
- Browser: Edge 124 
- FFmpeg Version: as per Docker
- Playback Method: n/a
- Hardware Acceleration: QSV
- GPU Model: CometLake-S GT2 (UHD Graphics 630)
- Plugins: only built in
- Reverse Proxy: none
- Base URL: none
- Networking: Host
- Storage: local for config, NFS for media

Docker Compose

version: '3.5'
services:
  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
    user: 0:0
    group_add:
      - "109"
    volumes:
      - /mnt/nvme1/jellyfin/jellyfin-config:/config
      - /mnt/nvme1/jellyfin/jellyfin-cache:/cache
      - /mnt/Demo:/Demo
    devices:
     - /dev/dri/renderD128:/dev/dri/renderD128
    network_mode: 'host'
    restart: 'unless-stopped'
    extra_hosts:
      - "host.docker.internal:host-gateway"

Jellyfin logs

[20:32:14] [DBG] [22] MediaBrowser.Controller.Entities.BaseItem: Movies has no parental rating set.
[20:32:14] [DBG] [22] MediaBrowser.Controller.Entities.BaseItem: Playlists has no parental rating set.
[20:32:14] [DBG] [22] Jellyfin.Api.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://192.168.53.229:8096/Users/d50bbe2e24a9475ea954efb88ef9e3f8/Items/2260f1e10b17b8ee25d44e3def334928 to 192.168.53.194 in 0:00:00.8429788 with Status Code 200
[20:32:14] [DBG] [22] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was not authenticated.
[20:32:14] [DBG] [24] MediaBrowser.Controller.Entities.BaseItem: Movies has no parental rating set.
[20:32:14] [DBG] [24] MediaBrowser.Controller.Entities.BaseItem: Playlists has no parental rating set.
[20:32:14] [DBG] [18] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[20:32:14] [DBG] [18] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[20:32:14] [DBG] [24] Jellyfin.Api.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://192.168.53.229:8096/Items/2260f1e10b17b8ee25d44e3def334928?userId=d50bbe2e24a9475ea954efb88ef9e3f8 to 192.168.53.194 in 0:00:00.8632441 with Status Code 200
[20:32:14] [DBG] [18] Jellyfin.Api.ModelBinders.CommaDelimitedArrayModelBinder: Error converting value.
System.FormatException: Desending is not a valid value for SortOrder.
 ---> System.ArgumentException: Requested value 'Desending' was not found.
   at System.Enum.TryParseByName[TStorage](RuntimeType enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, TStorage& result)
   at System.Enum.TryParseByValueOrName[TUnderlying,TStorage](RuntimeType enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, TUnderlying& result)
   at System.Enum.TryParse(Type enumType, ReadOnlySpan`1 value, Boolean ignoreCase, Boolean throwOnFailure, Object& result)
   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   --- End of inner exception stack trace ---
   at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at Jellyfin.Api.ModelBinders.CommaDelimitedArrayModelBinder.GetParsedResult(IReadOnlyList`1 values, Type elementType, TypeConverter converter)
[20:32:14] [DBG] [18] MediaBrowser.Controller.Entities.BaseItem: Movies has no parental rating set.
[20:32:14] [DBG] [18] MediaBrowser.Controller.Entities.BaseItem: Playlists has no parental rating set.
[20:32:15] [DBG] [24] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[20:32:15] [DBG] [24] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[20:32:15] [DBG] [24] MediaBrowser.Controller.Entities.BaseItem: Demo has no parental rating set.
[20:32:15] [DBG] [24] MediaBrowser.Controller.Entities.BaseItem: root has no parental rating set.
[20:32:15] [DBG] [24] MediaBrowser.Controller.Entities.BaseItem: Movies has no parental rating set.
[20:32:15] [DBG] [24] MediaBrowser.Controller.Entities.BaseItem: Playlists has no parental rating set.
[20:32:15] [DBG] [24] MediaBrowser.Controller.Entities.BaseItem: Peter Sallis has no parental rating set.
[20:32:15] [DBG] [24] MediaBrowser.Controller.Entities.BaseItem: Nick Park has no parental rating set.

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@thermionic thermionic added the bug Something isn't working label May 14, 2024
@thermionic
Copy link
Author

thermionic commented May 14, 2024

debugwithmetadata.log
full log (too big to add to issue)

@crobibero
Copy link
Member

SortOrder: 'Descending,Desending,Ascending',

@crobibero crobibero transferred this issue from jellyfin/jellyfin May 14, 2024
@thornbill thornbill added this to the v10.9.2 milestone May 14, 2024
@thornbill thornbill added this to To do in Release 10.9.z via automation May 14, 2024
@thornbill thornbill changed the title [Issue]: Desending is not a valid value for SortOrder Desending is not a valid value for SortOrder May 14, 2024
@thermionic
Copy link
Author

Apologies, didn't think to check jellyfin-web
second occurrence

SortOrder: 'Descending,Desending,Ascending',

@GeorgeH005
Copy link
Contributor

Got confused due to the comment and outdated local branches (my bad). Shouldn't this be closed as fixed?

@thornbill
Copy link
Member

GitHub doesn't automatically close issues if the PR does not target the main branch. I think it will once the change is backported to master, but if not I will manually close it at that time.

@GeorgeH005
Copy link
Contributor

GitHub doesn't automatically close issues if the PR does not target the main branch. I think it will once the change is backported to master, but if not I will manually close it at that time.

Ok!

@thermionic
Copy link
Author

Shouldn't the fixed sort order only have Descending in there once?

@thornbill
Copy link
Member

Each sort order applies to the corresponding sort by field like so:

SortByPremiereDateProductionYearSortName
SortOrderDescendingDescendingAscending

Release 10.9.z automation moved this from To do to Done May 17, 2024
@thermionic
Copy link
Author

aha, thank you for the explanation, much appreciated (-:

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
Development

Successfully merging a pull request may close this issue.

4 participants