427: Problem communicating with server when posting a new code review

venkat*******@gmai***** (Google Code) (Is this you? Claim this profile.)
June 7, 2008
What's the URL of the page containing the problem?
None

What steps will reproduce the problem?
1. post-review --server=<someserver.com> --target-people=<test> <chagelist num>
2.
3.

What is the expected output? What do you see instead?
Expected: It should post the code review to the review board
Instead: Seeing the following error
Unable to access http://server.com:8000/api/json/reviewrequests/new/. The
host path may be invalid
<urlopen error (104, 'Connection reset by peer')>


What operating system are you using? What browser?
RHEL, firefox

Please provide any additional information below.
"post-review --server=<someserver.com> --target-people=<test> <chagelist
num>" command worked fine two times but third time it gave me a problem.
chipx86
#1 chipx86
Can you attach the output of post-review --debug <your params here> ? Make sure to
save it as an HTML page and remove any sensitive information. I'm mainly interested
in what the error is, where, and the backtrace.

Also, is this using Perforce or SVN?
#2 johann******@hotma****** (Google Code) (Is this you? Claim this profile.)
receiving similar error. Below is bottom output of post-review with debug.

Unable to access http://server/api/json/reviewrequests/new/. The host path may be 
invalid
HTTP Error 500: Internal Server Error

Also a new change list request with a bogus attached diff does not produce 
an "invalid diff message" Repository is perforce. Used p4test.py with perforce and
all p4tests check out fine. 

Any Ideas?

J.
david
#3 david
We need the output of post-review --debug.
  • +NeedInfo
#4 sie***@gmai***** (Google Code) (Is this you? Claim this profile.)
I'm running into this same error on svn.  It actually worked for a while.. and then
it started hitting this same error when you execute a post-review.
#5 sie***@gmai***** (Google Code) (Is this you? Claim this profile.)
I'm attaching the post-review -d log.. I think I filtered all sensitive information
  • +
    >>> Repository info 'Path: svn+ssh://armstrong.x.com/var/www/html/svnroot, Base path: vnroot/selenium, Supports changesets: False'
    >>> Looking for 'itds12.x.com /' cookie in /home/x/.post-review-cookies.txt
    >>> Loaded valid cookie -- no login required
    >>> Attempting to create review request for None
    >>> HTTP POSTing to http://itds12.x.com/api/json/reviewrequests/new/: {'repository_path': 'svn+ssh://armstrong.x.com/var/www/html/svnroot'}
    >>> Review request created
    >>> Uploading diff, size: 192
    >>> HTTP POSTing to http://itds12.x.com/api/json/reviewrequests/16/diff/new/: {'basedir': 'vnroot/selenium'}
    >>> 
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html lang="en">
    <head>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <meta name="robots" content="NONE,NOARCHIVE">
      <title>error at /api/json/reviewrequests/16/diff/new/</title>
      <style type="text/css">
        html * { padding:0; margin:0; }
        body * { padd
david
#6 david
This is due to a bad regular expression in the "default reviewers" objects.  I've
just committed a fix which will allow diff uploads to work, as r1385.
  • -NeedInfo
    +Fixed