-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bad request when voting on review #8
Comments
Thanks for report, will check it soon @drakaru are you using sync client? |
It is strange, because even in old Swarm version (2017) docs says that it`s possible to put parameters as json in POST body - https://www.perforce.com/manuals/v17.4/swarm/#Swarm/swarm-apidoc.html Used data instead of json for:
|
Interesting. I'm not sure. Here's a small code sample to show all I'm doing:
|
Grabbed latest and confirmed working here, thanks! |
Since the change from form data to json in 0.6.3 swarm responds 400 on vote.
If I revert the change in 0.6.3 to send form data instead, it works fine.
https://www.perforce.com/manuals/swarm/Content/Swarm/swarm-apidoc_endpoint_reviews.html#Set_vote_for_the_authenticated_user_to_up,_down,_or_cleared
Note I am using SWARM/2019.3/1886340 (2019/11/20) however the current docs don't mention json either.
The text was updated successfully, but these errors were encountered: