• 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
    niels
    Offline

    Core Team

    Posts: 282
    Threads: 4
    Joined: 2023 Jun
    Reputation: 17
    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
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    (API) Running into an error when attempting to GET details for item id - by OivaJS - 2024-04-08, 11:24 AM
    RE: (API) Running into an error when attempting to GET details for item id - by niels - 2024-04-08, 12:46 PM
    RE: (API) Running into an error when attempting to GET details for item id - by OivaJS - 2024-04-08, 02:10 PM

    • 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