Jump to content

ItemRefreshService - 204


ShadowBlade72
Go to solution Solved by Luke,

Recommended Posts

ShadowBlade72

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: */*"

Link to comment
Share on other sites

  • Solution

Hi there, a 204 response code is not an error. That is a successful response code.

  • Like 1
Link to comment
Share on other sites

PenkethBoy

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 by PenkethBoy
Link to comment
Share on other sites

ShadowBlade72

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."

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...