ShadowBlade72 22 Posted February 3, 2019 Posted February 3, 2019 Emby Version: 4.0.1.0 Utilizing the Swagger UI for testing, as well as the command line from a conversion server that I'd previously been able to send item refreshes from under previous versions (3.5.0.0) When attempting to refresh an item using the ItemRefreshService, it returns a 204 error. I tested out to ensure that the item ID is correct by running a /Items/{Id}/Similar which returned the expected results. This returns expected results: curl -X GET "https://192.168.0.100:8920/emby/Items/52086/Similar?api_key=XXXXXXX"-H "accept: application/json" This returns a 204 error: curl -X POST "https://192.168.0.100:8920/emby/Items/52086/Refresh?Recursive=true&MetadataRefreshMode=Default&ImageRefreshMode=Default&api_key=XXXXXX"-H "accept: */*"
Solution Luke 40105 Posted February 3, 2019 Solution Posted February 3, 2019 Hi there, a 204 response code is not an error. That is a successful response code. 1
PenkethBoy 2066 Posted February 3, 2019 Posted February 3, 2019 (edited) Have a look at this page it gives you a list of what http status codes mean https://en.wikipedia.org/wiki/List_of_HTTP_status_codes e.g. 204 No Content The server successfully processed the request and is not returning any content Which makes sense for a refresh of an item Edited February 3, 2019 by PenkethBoy
ShadowBlade72 22 Posted February 3, 2019 Author Posted February 3, 2019 Thanks, I appreciate the responses! I got confused because in Swagger it lists 200 as the only successful response, so I had just assumed that even though 204 is a "Success" response, it was incorrect. "200 Operation successful. Empty response."
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now