1042: 1.0 beta 2 post-review has json error

Yue.Ni******@gmai***** (Google Code) (Is this you? Claim this profile.)
April 20, 2009
What's the URL of the page containing the problem?

http://reviews.example.com

What steps will reproduce the problem?
1. Install as per easy_install instruction
2. Do the apache2 configuration
3. Restart apache2

What is the expected output? What do you see instead?
Expected output is that post-review does a publish.
Instead, I get the following
8<------8<------8<------8<------8<------8<------8<------8<------8<------
nicholas@om012100:~/projects/drd_svn/vacuumLib/include$ post-review -d -p
--server=http://reviews.example.com/ --summary="summary"
--description="description" vutilities.hpp 
>>> svn info
>>> repository info: Path: http://svn.drd.int/drd, Base path:
/vacuumLib/trunk/include, Supports changesets: False
>>> svn diff --diff-cmd=diff vutilities.hpp
>>> Looking for 'reviews.example.com /' cookie in
/home/nicholas/.post-review-cookies.txt
>>> Loaded valid cookie -- no login required
>>> Attempting to create review request for None
>>> HTTP GETting /api/json/repositories/
>>> HTTP GETting /api/json/repositories/1/info/
>>> HTTP POSTing to
http://reviews.example.com/api/json/reviewrequests/new/:
{'repository_path': 'http://svn.drd.int/drd'}
>>> Review request created
>>> Attempting to set field 'summary' to 'summary' for review request '6'
>>> HTTP POSTing to
http://reviews.example.com/api/json/reviewrequests/6/draft/set/:
{'summary': 'summary'}
>>> Attempting to set field 'description' to 'description' for review
request '6'
>>> HTTP POSTing to
http://reviews.example.com/api/json/reviewrequests/6/draft/set/:
{'description': 'description'}
>>> HTTP POSTing to
http://reviews.example.com/api/json/reviewrequests/6/draft/save/: {}
>>> Review request draft saved
>>> Uploading diff, size: 0
>>> HTTP POSTing to
http://reviews.example.com/api/json/reviewrequests/6/diff/new/: {'basedir':
'/vacuumLib/trunk/include'}
>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>500 - Internal Server Error | Review Board</title>
 </head>
 <body>
  <h1>Something broke! (Error 500)</h1>
  <p>
   It appears something broke when you tried to go to here. This is either
   a bug in Review Board or a server configuration error. Please report
   this to your administrator.
  </p>
 </body>
</title>

Unable to access
http://reviews.example.com/api/json/reviewrequests/6/diff/new/. The host
path may be invalid
HTTP Error 500: Internal Server Error


What operating system are you using? What browser?


Please provide any additional information below.
chipx86
#1 chipx86
I'm going to need more info than this. Can you set DEBUG = True in your
conf/settings_local.py, restart Apache, and reproduce this?
  • +NeedInfo
#2 Yue.Ni******@gmai***** (Google Code) (Is this you? Claim this profile.)
With the debug state set to True, I am able to debug and resolve the previous problem.

It was due to pysvn not being installed.

There is still an error but is not related to JSON and API.

I will post a separate ticket for the new error.
chipx86
#3 chipx86
  • -NeedInfo
    +NotABug