Labels: Type-Defect Priority-Medium
New issue 3646 by vlov...@gmail.com: RBTools API throws an exception trying
to discard a review it created
What version are you running?
What's the URL of the page containing the problem?
What steps will reproduce the problem?
1. Create & publish a review.
2. Get handle to the ReviewRequest via root.get_review_requests()
3. draft = review_request.get_or_create_draft()
What is the expected output? What do you see instead?
The expected output should succeed successfully.
Instead, an exception is thrown because payload is empty (0-length):
File "/Library/Python/2.7/site-packages/rbtools/api/resource.py", line
130, in <lambda>
File "/Library/Python/2.7/site-packages/rbtools/api/decorators.py", line
24, in request_method
line 61, in execute_request_method
line 75, in _execute_request
payload = decode_response(payload, mime_type)
File "/Library/Python/2.7/site-packages/rbtools/api/decode.py", line 54,
File "/Library/Python/2.7/site-packages/rbtools/api/decode.py", line 30,
line 338, in loads
line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
This is likely a bug in the server not returning a valid JSON response?
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.