Re: Issue 2791 in reviewboard: ValueError: No JSON object could be decoded

2012-12-22 Thread reviewboard

Updates:
Status: Incomplete

Comment #2 on issue 2791 by trowb...@gmail.com: ValueError: No JSON object  
could be decoded

http://code.google.com/p/reviewboard/issues/detail?id=2791

(No comment was entered for this change.)

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.



ValueError: No JSON object could be decoded

2011-07-18 Thread Joe Lencioni
I was running into a weird error with post-review.

Here's the post-review --debug

 RBTools 0.3.2
 Home = /path/to/home/dir
 svn info
 git rev-parse --git-dir
 git symbolic-ref -q HEAD
 git config --get branch.master.merge
 git config --get branch.master.remote
 git config remote.origin.url
 repository info: Path: /path/to/repo.git, Base path: , Supports 
changesets: False
 HTTP GETting api/
Traceback (most recent call last):
  File /usr/bin/post-review, line 9, in module
load_entry_point('RBTools==0.3.2', 'console_scripts', 'post-review')()
  File /usr/lib/python2.6/site-packages/rbtools/postreview.py, line 3741, 
in main
server.check_api_version()
  File /usr/lib/python2.6/site-packages/rbtools/postreview.py, line 433, 
in check_api_version
root_resource = self.api_get('api/')
  File /usr/lib/python2.6/site-packages/rbtools/postreview.py, line 876, 
in api_get
return self.process_json(self.http_get(path))
  File /usr/lib/python2.6/site-packages/rbtools/postreview.py, line 812, 
in process_json
rsp = json_loads(data)
  File /usr/lib64/python2.6/json/__init__.py, line 307, in loads
return _default_decoder.decode(s)
  File /usr/lib64/python2.6/json/decoder.py, line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File /usr/lib64/python2.6/json/decoder.py, line 338, in raw_decode
raise ValueError(No JSON object could be decoded)
ValueError: No JSON object could be decoded


I determined that the value of REVIEWBOARD_URL in my .reviewboardrc file was 
wrong. I corrected it and this fixed the error.

Would it be possible for post-review to generate a more helpful error 
message in this case?

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: ValueError: No JSON object could be decoded

2009-12-03 Thread Mahesh
ha.. that is the domain name which I have given for my local
installation.
:)

Mahesh

On Dec 3, 1:34 am, Christian Hammond chip...@chipx86.com wrote:
 Hi,

 Is it really reviewboard.com that you're trying to access? Because we don't
 own that domain :) What's specifying that domain?

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.reviewboard.org
 VMware, Inc. -http://www.vmware.com



 On Wed, Dec 2, 2009 at 4:10 AM, Mahesh vsmait...@gmail.com wrote:
  Hello brothers,

  I have installed reviewboard 1.0.1 on a linux(fedora 8) m/c.
  Everything is working fine in the GUI.
  But when I try to use the post-review he's giving me some strange
  error or rather strange to me!!

  [r...@testvm cli]# /home/mahesh/lib/post-review
  == Review Board Login Required
  Enter username and password for Review Board athttp://reviewboard.com/
  Username: mahesh
  Password:
  Traceback (most recent call last):
   File /home/mahesh/lib/post-review, line 8, in module
     load_entry_point('RBTools==0.2beta2', 'console_scripts', 'post-
  review')()
   File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
  postreview.py, line 2518, in main
   File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
  postreview.py, line 314, in login
   File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
  postreview.py, line 575, in api_post
   File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
  postreview.py, line 486, in process_json
   File /usr/lib/python2.6/json/__init__.py, line 307, in loads
     return _default_decoder.decode(s)
   File /usr/lib/python2.6/json/decoder.py, line 319, in decode
     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
   File /usr/lib/python2.6/json/decoder.py, line 338, in raw_decode
     raise ValueError(No JSON object could be decoded)
  ValueError: No JSON object could be decoded

  Can anyone pls help me to get out of this??
  Don feel bad if it is a very basic one!!

  Thanks,
  Mahesh

  --
  Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
  Happy user? Let us know athttp://www.reviewboard.org/users/
  -~--~~~~--~~--~--~---
  To unsubscribe from this group, send email to
  reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegr 
  oups.com
  For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: ValueError: No JSON object could be decoded

2009-12-03 Thread Mahesh
Yeah, even then he's giving the same error.
Actually i am trying to run post-review from the same m/c where I have
installed reviewboard. It has a checked out copy of the CVS rep.

-Mahesh

On Dec 3, 2:11 am, Chris Clark chris.cl...@ingres.com wrote:
 Have you tried using the:

     --server=

 flag?

 RE the version of reviewboard, if this is a new install I would go ahead
 and use 1.0.5.1 this shouldn't impact the error you are seeing but why
 use an old version when you can use the new stable one ;-)

 Chris



 Christian Hammond wrote:
  Hi,

  Is it really reviewboard.com http://reviewboard.com that you're
  trying to access? Because we don't own that domain :) What's
  specifying that domain?

  Christian

  --
  Christian Hammond - chip...@chipx86.com mailto:chip...@chipx86.com
  Review Board -http://www.reviewboard.org
  VMware, Inc. -http://www.vmware.com

  On Wed, Dec 2, 2009 at 4:10 AM, Mahesh vsmait...@gmail.com
  mailto:vsmait...@gmail.com wrote:

      Hello brothers,

      I have installed reviewboard 1.0.1 on a linux(fedora 8) m/c.
      Everything is working fine in the GUI.
      But when I try to use the post-review he's giving me some strange
      error or rather strange to me!!

      [r...@testvm cli]# /home/mahesh/lib/post-review
      == Review Board Login Required
      Enter username and password for Review Board at
     http://reviewboard.com/
      Username: mahesh
      Password:
      Traceback (most recent call last):
       File /home/mahesh/lib/post-review, line 8, in module
         load_entry_point('RBTools==0.2beta2', 'console_scripts', 'post-
      review')()
       File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
      postreview.py, line 2518, in main
       File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
      postreview.py, line 314, in login
       File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
      postreview.py, line 575, in api_post
       File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
      postreview.py, line 486, in process_json
       File /usr/lib/python2.6/json/__init__.py, line 307, in loads
         return _default_decoder.decode(s)
       File /usr/lib/python2.6/json/decoder.py, line 319, in decode
         obj, end = self.raw_decode(s, idx=_w(s, 0).end())
       File /usr/lib/python2.6/json/decoder.py, line 338, in raw_decode
         raise ValueError(No JSON object could be decoded)
      ValueError: No JSON object could be decoded

      Can anyone pls help me to get out of this??
      Don feel bad if it is a very basic one!!

      Thanks,
      Mahesh

      --
      Want to help the Review Board project? Donate today at
     http://www.reviewboard.org/donate/
      Happy user? Let us know athttp://www.reviewboard.org/users/
      -~--~~~~--~~--~--~---
      To unsubscribe from this group, send email to
      reviewboard+unsubscr...@googlegroups.com
      mailto:reviewboard%2bunsubscr...@googlegroups.com
      For more options, visit this group at
     http://groups.google.com/group/reviewboard?hl=en

  --
  Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
  Happy user? Let us know athttp://www.reviewboard.org/users/
  -~--~~~~--~~--~--~---
  To unsubscribe from this group, send email to
  reviewboard+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: ValueError: No JSON object could be decoded

2009-12-03 Thread Christian Hammond
But reviewboard.com is an actual domain, without a Review Board server. I'd
expect that it's connecting to that domain, getting an HTML page, and giving
you that error, since it can't parse any JSON from that page.

Please provide the output with --debug.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Thu, Dec 3, 2009 at 5:38 AM, Mahesh vsmait...@gmail.com wrote:

 ha.. that is the domain name which I have given for my local
 installation.
 :)

 Mahesh

 On Dec 3, 1:34 am, Christian Hammond chip...@chipx86.com wrote:
  Hi,
 
  Is it really reviewboard.com that you're trying to access? Because we
 don't
  own that domain :) What's specifying that domain?
 
  Christian
 
  --
  Christian Hammond - chip...@chipx86.com
  Review Board -http://www.reviewboard.org
  VMware, Inc. -http://www.vmware.com
 
 
 
  On Wed, Dec 2, 2009 at 4:10 AM, Mahesh vsmait...@gmail.com wrote:
   Hello brothers,
 
   I have installed reviewboard 1.0.1 on a linux(fedora 8) m/c.
   Everything is working fine in the GUI.
   But when I try to use the post-review he's giving me some strange
   error or rather strange to me!!
 
   [r...@testvm cli]# /home/mahesh/lib/post-review
   == Review Board Login Required
   Enter username and password for Review Board athttp://reviewboard.com/
   Username: mahesh
   Password:
   Traceback (most recent call last):
File /home/mahesh/lib/post-review, line 8, in module
  load_entry_point('RBTools==0.2beta2', 'console_scripts', 'post-
   review')()
File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
   postreview.py, line 2518, in main
File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
   postreview.py, line 314, in login
File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
   postreview.py, line 575, in api_post
File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
   postreview.py, line 486, in process_json
File /usr/lib/python2.6/json/__init__.py, line 307, in loads
  return _default_decoder.decode(s)
File /usr/lib/python2.6/json/decoder.py, line 319, in decode
  obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File /usr/lib/python2.6/json/decoder.py, line 338, in raw_decode
  raise ValueError(No JSON object could be decoded)
   ValueError: No JSON object could be decoded
 
   Can anyone pls help me to get out of this??
   Don feel bad if it is a very basic one!!
 
   Thanks,
   Mahesh
 
   --
   Want to help the Review Board project? Donate today at
  http://www.reviewboard.org/donate/
   Happy user? Let us know athttp://www.reviewboard.org/users/
   -~--~~~~--~~--~--~---
   To unsubscribe from this group, send email to
   reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com
 reviewboard%2bunsubscr...@googlegr oups.com
   For more options, visit this group at
  http://groups.google.com/group/reviewboard?hl=en

 --
 Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
 reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en


-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: ValueError: No JSON object could be decoded

2009-12-02 Thread Christian Hammond
Hi,

Is it really reviewboard.com that you're trying to access? Because we don't
own that domain :) What's specifying that domain?

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Wed, Dec 2, 2009 at 4:10 AM, Mahesh vsmait...@gmail.com wrote:

 Hello brothers,

 I have installed reviewboard 1.0.1 on a linux(fedora 8) m/c.
 Everything is working fine in the GUI.
 But when I try to use the post-review he's giving me some strange
 error or rather strange to me!!


 [r...@testvm cli]# /home/mahesh/lib/post-review
 == Review Board Login Required
 Enter username and password for Review Board at http://reviewboard.com/
 Username: mahesh
 Password:
 Traceback (most recent call last):
  File /home/mahesh/lib/post-review, line 8, in module
load_entry_point('RBTools==0.2beta2', 'console_scripts', 'post-
 review')()
  File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
 postreview.py, line 2518, in main
  File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
 postreview.py, line 314, in login
  File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
 postreview.py, line 575, in api_post
  File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
 postreview.py, line 486, in process_json
  File /usr/lib/python2.6/json/__init__.py, line 307, in loads
return _default_decoder.decode(s)
  File /usr/lib/python2.6/json/decoder.py, line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File /usr/lib/python2.6/json/decoder.py, line 338, in raw_decode
raise ValueError(No JSON object could be decoded)
 ValueError: No JSON object could be decoded

 Can anyone pls help me to get out of this??
 Don feel bad if it is a very basic one!!

 Thanks,
 Mahesh

 --
 Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
 reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: ValueError: No JSON object could be decoded

2009-12-02 Thread Chris Clark
Have you tried using the:

--server=

flag?

RE the version of reviewboard, if this is a new install I would go ahead 
and use 1.0.5.1 this shouldn't impact the error you are seeing but why 
use an old version when you can use the new stable one ;-)

Chris

Christian Hammond wrote:
 Hi,

 Is it really reviewboard.com http://reviewboard.com that you're 
 trying to access? Because we don't own that domain :) What's 
 specifying that domain?

 Christian

 -- 
 Christian Hammond - chip...@chipx86.com mailto:chip...@chipx86.com
 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com


 On Wed, Dec 2, 2009 at 4:10 AM, Mahesh vsmait...@gmail.com 
 mailto:vsmait...@gmail.com wrote:

 Hello brothers,

 I have installed reviewboard 1.0.1 on a linux(fedora 8) m/c.
 Everything is working fine in the GUI.
 But when I try to use the post-review he's giving me some strange
 error or rather strange to me!!


 [r...@testvm cli]# /home/mahesh/lib/post-review
 == Review Board Login Required
 Enter username and password for Review Board at
 http://reviewboard.com/
 Username: mahesh
 Password:
 Traceback (most recent call last):
  File /home/mahesh/lib/post-review, line 8, in module
load_entry_point('RBTools==0.2beta2', 'console_scripts', 'post-
 review')()
  File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
 postreview.py, line 2518, in main
  File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
 postreview.py, line 314, in login
  File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
 postreview.py, line 575, in api_post
  File /home/mahesh/lib/RBTools-0.2beta2-py2.6.egg/rbtools/
 postreview.py, line 486, in process_json
  File /usr/lib/python2.6/json/__init__.py, line 307, in loads
return _default_decoder.decode(s)
  File /usr/lib/python2.6/json/decoder.py, line 319, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File /usr/lib/python2.6/json/decoder.py, line 338, in raw_decode
raise ValueError(No JSON object could be decoded)
 ValueError: No JSON object could be decoded

 Can anyone pls help me to get out of this??
 Don feel bad if it is a very basic one!!

 Thanks,
 Mahesh

 --
 Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
 reviewboard+unsubscr...@googlegroups.com
 mailto:reviewboard%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en


 -- 
 Want to help the Review Board project? Donate today at 
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to 
 reviewboard+unsubscr...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/reviewboard?hl=en 

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en