• 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 SOLVED: (API) Running into an error when attempting to GET details for item id

     
    • 0 Vote(s) - 0 Average

    SOLVED: (API) Running into an error when attempting to GET details for item id

    I keep running into an error that makes no sense to me, when trying to request album info with GET
    OivaJS
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Apr
    Reputation: 0
    Country:Finland
    #1
    2024-04-08, 11:24 AM (This post was last modified: 2024-04-08, 11:39 AM by OivaJS. Edited 5 times in total.)

    .txt   logs.txt (Size: 2.79 KB / Downloads: 67)
    Code:
    curl -v -X GET 'localhost:8096/emby/Items/6062205f8327b080b03b2b510d267cb7?api_key=my-key' -H 'X-Emby-Token: my-key'

    Results in

    Code:
    * Mark bundle as not supporting multiuse
    < HTTP/1.1 405 Method Not Allowed
    < Content-Length: 0
    < Date: Mon, 08 Apr 2024 11:08:03 GMT
    < Server: Kestrel
    < Allow: DELETE, POST
    < X-Response-Time-ms: 10

    As you can see, I am making the request directly to make sure the issue is not caused by nginx. (as the server resides in my home network)
    Yet still, only DELETE and POST are allowed, which is peculiar to me, and I ran into a dead end trying to figure out why this might happen.

    My configuration runs version 10.8.13 on debian AArch64.

    Some notes about my process to try and find a solution:
    - Item id exists and is correct (triple checked)
    - API key is correct and operational
    - Jellyfin interface is accessible without any problems
    - Nothing catches my eye in the logfile of Jellyfin

    here are anyways the logs from the time

    .txt   logs.txt (Size: 2.79 KB / Downloads: 67)

    I thank you for your time! - O
    Go to solution
    niels
    Offline

    Core Team

    Posts: 248
    Threads: 4
    Joined: 2023 Jun
    Reputation: 12
    Country:Netherlands
    #2
    2024-04-08, 12:46 PM (This post was last modified: 2024-04-08, 12:46 PM by niels.)
    Few problems:

    - The URL starts with "/emby", this is invalid (unless you've manually configured this to be your base-url in Jellyfin or do reverse proxy magic)
    - The api_key query parameter is deprecated - it still works but don't use it
    - The X-Emby-Token header is deprecated - it still works but don't use it
    - You added authorization twice (query/header)
    - There is no GET operation for this specific route, the GetItem operation requires a user-id in 10.8, add it as a query parameter

    A more correct request would look like this:


    curl -v -X GET 'localhost:8096/Users/{userId}/Items/6062205f8327b080b03b2b510d267cb7' -H 'Authorization: MediaBrowser Token="my-key"'


    Additional references:
    - https://gist.github.com/nielsvanvelzen/e...1ffaf12a6f
    - https://api.jellyfin.org/#tag/Items/operation/GetItem
    OivaJS
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Apr
    Reputation: 0
    Country:Finland
    #3
    2024-04-08, 02:10 PM
    Thank you so much! This made so many things much clearer for me and just generally helped me a bunch. - O
    « 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