mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
NullPointer on Api /Items #3099
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#3099
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 @xmt328 on GitHub (Jun 22, 2021).
Describe the bug
NullPointer on Api /Items
System (please complete the following information):
To Reproduce
https://./Items?parentId=1faa9f40-50f8-301e-3006-a036a45cad8d&enableTotalRecordCount=true&enableImages=true
Server Logs
@dkanada commented on GitHub (Jun 22, 2021):
Are you passing the API key anywhere?
@xmt328 commented on GitHub (Jun 22, 2021):
Yes, and I'm using jellyfin-sdk-kotlin
@dkanada commented on GitHub (Jun 22, 2021):
Have you tried it with a user ID? The API has lots of inconsistencies in that regard at the moment, so it might be required.
@xmt328 commented on GitHub (Jun 22, 2021):
I have tried to use /Users/{userId}/Items, and pass userId to /Items
they are both worked.
@nielsvanvelzen commented on GitHub (Jun 22, 2021):
Some tips:
GetItemsByUserIdfunction instead ofGetItems. They both use the exact same code path in the server but the second one marks the user id (wrongly) as nullable and the SDK won't automatically fill it in.@cvium commented on GitHub (Jun 22, 2021):
Seems like this has been "resolved". It's also a duplicate of https://github.com/jellyfin/jellyfin/issues/2246.