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

ApiClient.getItem makes a GET request to /Items/{itemId} when userId not present, which isn't a valid method #307

Open
uwx opened this issue Sep 30, 2021 · 0 comments

Comments

@uwx
Copy link

uwx commented Sep 30, 2021

The ApiClient.getItem method makes a GET request to /Items/{itemId} when the userId parameter is not present, which causes a 405 Method Not Allowed response. This function is used by the web player's SyncPlay integration, which prevents SyncPlay from working.

I haven't found a GET /Items/{itemId} endpoint, so I think this isn't an issue with Jellyfin itself but rather with the API client. Note that GET Users/{userId}/Items/{itemId} is an endpoint that exists, and it's what gets used outside of SyncPlay.

Relevant code:

https://github.com/jellyfin/jellyfin-apiclient-javascript/blob/a0143bcd7dc8389c51bcb5cabebcbd1d13e31d49/src/apiClient.js#L782-L794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant