[API][v3] Adding item using POST endpoint fails when specifying valid collection id (int) [Risolto]

Pubblicazioni di 3 • visto 61 volte

Questo messaggio ha lo scopo di: segnalazione di un difetto

Stato Risolto
Voti positivi: 0
Voti negativi: 0
I tried to make real sure on this one lol...

**Summary**
When submitting a POST to /users/{user_id}/collected_items, a 400 with the message "Invalid collection <collection_id>" even when the int specified in the error message is valid.

**Details**

I detailed the Python calls and process, as well as included a verbose debugging output in a gist here:
https://gist.github.com/namachieli/7bb0271f415d796744ba47506c76146f

You can see where i fetch the list of collections with IDs to verify the ID is valid for the user.

I also Verified this behavior was consistent by using the API Client in the API Documentation GUI using the same data used as the input to the Python SDK. (Attached Pictures)
Fails:

Works:



Let me know if more details are needed. Thanks!
Thanks for your thorough testing! It's fixed.
Stato cambiato a Risolto (Xavier, 1 Apr 2022, 10:23)
Excellent, thanks for the fast turn around!

» Politica del Forum

Il fuso orario utilizzato è UTC+2:00.
L'ora attuale è 01:46.