mirror of
https://github.com/Lidarr/Lidarr.git
synced 2026-03-02 22:56:57 -05:00
Lidarr unable to show activity queue after sorting by Artist #1312
Labels
No labels
Area: API
Area: Database
Area: Db-migration
Area: Download Clients
Area: Extras
Area: Import Lists
Area: Indexer
Area: Metadata API
Area: Notifications
Area: Organizer
Area: Parser
Area: Scanning
Area: Tooling
Area: UI
Area: Unit Tests
Area: Update API
On Hold: MetadataAPI Blocking
Priority: High
Priority: Low
Priority: Medium
Status: Accepted
Status: Cannot Reproduce
Status: Confirmed
Status: Don't Merge
Status: Help Wanted
Status: In Progress
Status: Info Needed
Status: Investigating
Status: Logs Needed
Status: Maybe One Day
Status: Needs Triage
Status: On Hold
Status: Ready for Review
Status: Unlikely
Status: Waiting for OP
Status: Won't Fix
Type: Bug
Type: Documentation
Type: Duplicate
Type: Enhancement
Type: Enhancement
Type: External Bug
Type: Feature Request
Type: Regression
Type: Support
Type: Support.
conflict
conflict
no-conflict
not-pulled
radarr-pull
readarr-pull
sonarr upstream
sonarr-pull
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Lidarr#1312
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @OgreMHDW on GitHub (Dec 18, 2020).
Originally assigned to: @Qstick on GitHub.
Describe the bug
I tried to sort the activity queue page by artist. After doing that, I now receive the error "Failed to load Queue" when selecting that page.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Items in the download queue listed.
Screenshots

Platform Information (please complete the following information):
Event Logs
Message:
API Error: BadRequest: Invalid sort key artists.sortName
Exception:
Lidarr.Http.REST.BadRequestException: BadRequest: Invalid sort key artists.sortName
at Lidarr.Http.REST.RestModule
1.ReadPagingResourceFromRequest() in D:\a\1\s\src\Lidarr.Http\REST\RestModule.cs:line 314 at Lidarr.Http.REST.RestModule1.<set_GetResourcePaged>b__37_0(Object options) in D:\a\1\s\src\Lidarr.Http\REST\RestModule.cs:line 169at Nancy.NancyModule.<>c__DisplayClass14_0
1.<Get>b__0(Object args) at Nancy.NancyModule.<>c__DisplayClass16_01.b__0(Object args, CancellationToken ct)at Nancy.Routing.Route`1.Invoke(DynamicDictionary parameters, CancellationToken cancellationToken)
at Nancy.Routing.DefaultRouteInvoker.Invoke(Route route, CancellationToken cancellationToken, DynamicDictionary parameters, NancyContext context)
at Nancy.Routing.DefaultRequestDispatcher.Dispatch(NancyContext context, CancellationToken cancellationToken)
at Nancy.NancyEngine.InvokeRequestLifeCycle(NancyContext context, CancellationToken cancellationToken, IPipelines pipelines)
Trace Logs
20-12-18 17:32:30.9|Trace|Http|Req: 5 [GET] /api/v1/queue?page=1&pageSize=20&sortDirection=descending&sortKey=artists.sortName&includeUnknownArtistItems=false (from ::ffff:192.168.56.106 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36)
20-12-18 17:32:31.1|Trace|LidarrErrorPipeline|Handling Exception
20-12-18 17:32:31.1|Warn|LidarrErrorPipeline|API Error
[v0.8.0.1948] Lidarr.Http.REST.BadRequestException: BadRequest: Invalid sort key artists.sortName
at Lidarr.Http.REST.RestModule
1.ReadPagingResourceFromRequest() in D:\a\1\s\src\Lidarr.Http\REST\RestModule.cs:line 314 at Lidarr.Http.REST.RestModule1.<set_GetResourcePaged>b__37_0(Object options) in D:\a\1\s\src\Lidarr.Http\REST\RestModule.cs:line 169at Nancy.NancyModule.<>c__DisplayClass14_0
1.<Get>b__0(Object args) at Nancy.NancyModule.<>c__DisplayClass16_01.b__0(Object args, CancellationToken ct)at Nancy.Routing.Route`1.Invoke(DynamicDictionary parameters, CancellationToken cancellationToken)
at Nancy.Routing.DefaultRouteInvoker.Invoke(Route route, CancellationToken cancellationToken, DynamicDictionary parameters, NancyContext context)
at Nancy.Routing.DefaultRequestDispatcher.Dispatch(NancyContext context, CancellationToken cancellationToken)
at Nancy.NancyEngine.InvokeRequestLifeCycle(NancyContext context, CancellationToken cancellationToken, IPipelines pipelines)
@OgreMHDW commented on GitHub (Dec 18, 2020):
Also, note on this issue. As the user, I am unable to get back to the "default" sort when these type of issues occur? I would recommend an enhancement to have a "reset sort and filter button".
#1818
@Qstick commented on GitHub (Dec 18, 2020):
@ta264 You may want to look at a better fix for this, for some reason the properties for the artists table are never mapped into the allowable array... The following code gets hit for every table except "artists" when looping thru the tables
github.com/lidarr/Lidarr@eb5a95cfa6/src/NzbDrone.Core/Datastore/TableMapper.cs (L126)For now I added it to the allowable sorts override in RestModule..