SOLVED: Unable To POST an UserData Update - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +--- Thread: SOLVED: Unable To POST an UserData Update (/t-solved-unable-to-post-an-userdata-update) |
Unable To POST an UserData Update - hieroglyph - 2024-01-03 Unable to POST an UserData update - Getting 404 Not Found - HTTPError
What Is Happening: When POSTing an update to a user's UserData for a media item (e.g. movie or episode) the error code response is 404 Not Found - HTTPError. What I Am Expecting To Happen: When POSTing an update to a user's UserData for a media item (e.g. movie or episode), I am expecting the media item to be updated and to receive a 204 response. Python debug can be found here: python_Debug_20240103121000.log To help correlate the Python debug with the Jellyfin debug... The time the script was started and the time the script exited due to the 404 Not Found HTTPError: Code: Time Stamp Start: 20240103121002 Code: Script Stopped: 2024-01-03 12:10:19.200060 The URL, Method, Header, and Data used in the POST to the Jellyfin server: Code: HTTPError: Unable to get information from server during processing of: add_missing_LastPlayedDate The x4 attempts to POST the UserData update along with timestamps: Code: 2024-01-03 12:10:03.997290 - add_missing_LastPlayedDate Jellyfin debug can be found here: jellyfin_Debug_20240103121000.log Other relevant information; there may be a different/better way to do this: When importing played states from Trakt, the PlayCount=1 and Played=true. However, the LastPlayedDate field is missing. Code: ['UserData'] from server before POSTing update: I am using a script to delete media after certain conditions are met. The script needs to know when the media item was last played for a given user. To account for this; when a media item imported from Trakt is found that does not have LastPlayedDate, the current date-time is used. The script then uses this date-time to determine when the media item should be deleted. Code: Expected ['UserData'] from server after POSTing update: Also tried toggling the Played field (True --> False --> True) to get Jellyfin to populate the date-time. But get the same 404 Not Found - HTTPError. RE: Unable To POST an UserData Update - hieroglyph - 2024-01-20 My issue was using GUI generated API keys instead of Authenticating By Username via the API endpoint Code: /Users/AuthenticateByName |