We are currently using the RB 1.7.6 and having the similar problem using 
rbt post.

nntopencl046el$ rbt post -d
DEBUG:root:Checking for a Git repository...
DEBUG:root:Running: git rev-parse --git-dir
DEBUG:root:Running: git config core.bare
DEBUG:root:Running: git rev-parse --show-toplevel
DEBUG:root:Running: git symbolic-ref -q HEAD
DEBUG:root:Running: git config --get git-p4.port
DEBUG:root:Command exited with rc 1: ['git', 'config', '--get', 
'git-p4.port']
---
DEBUG:root:Running: git config --get branch.xxxxxx.merge
DEBUG:root:Running: git config --get branch.xxxxxx.remote
DEBUG:root:Running: git config --get remote.origin.url
DEBUG:root:repository info: Path: xxxxxx, Base path: , Supports changesets: 
False
DEBUG:root:Making HTTP GET request to http://xxx.xxx.com/cr/api/
DEBUG:root:Making HTTP GET request to http://xxx.xxx.com/cr/api/info/
DEBUG:root:Running: git rev-parse refs/heads/xxxxxx
DEBUG:root:Running: git merge-base e1d20e90c03a7591195ff08cb99934c0ea1b1934 
origin/xxxxxx
DEBUG:root:Running: git rev-parse e83d0646802305ec98b60606f907a655a92723b1
DEBUG:root:Running: git status --porcelain --untracked-files=no
DEBUG:root:Running: git diff --no-color --full-index --no-ext-diff 
--ignore-submodules --no-renames 
e83d0646802305ec98b60606f907a655a92723b1..e1d20e90c03a7591195ff08cb99934c0ea1b1934
 
-M
DEBUG:root:Making HTTP GET request to 
http://xxx.xxx.com/cr/api/review-requests/
DEBUG:root:Making HTTP POST request to 
http://xxx.xxx.com/cr/api/review-requests/
DEBUG:root:Making HTTP GET request to 
http://xxx.xxx.com/cr/api/review-requests/3852/diffs/
DEBUG:root:Making HTTP POST request to 
http://xxx.xxx.com/cr/api/review-requests/3852/diffs/
DEBUG:root:Making HTTP GET request to 
http://xxx.xxx.com/cr/api/review-requests/3852/draft/
Traceback (most recent call last):
  File "/opt/tools/bin/rbt", line 8, in <module>
    load_entry_point('RBTools==0.5.5', 'console_scripts', 'rbt')()
  File 
"/opt/tools/lib/python2.7/site-packages/RBTools-0.5.5-py2.7.egg/rbtools/commands/main.py",
 
line 127, in main
    command.run_from_argv([RB_MAIN] + args)
  File 
"/opt/tools/lib/python2.7/site-packages/RBTools-0.5.5-py2.7.egg/rbtools/commands/__init__.py",
 
line 158, in run_from_argv
    exit_code = self.main(*args) or 0
  File 
"/opt/tools/lib/python2.7/site-packages/RBTools-0.5.5-py2.7.egg/rbtools/commands/post.py",
 
line 659, in main
    submit_as=self.options.submit_as)
  File 
"/opt/tools/lib/python2.7/site-packages/RBTools-0.5.5-py2.7.egg/rbtools/commands/post.py",
 
line 585, in post_request
    return review_request.id, review_request.absolute_url
  File 
"/opt/tools/lib/python2.7/site-packages/RBTools-0.5.5-py2.7.egg/rbtools/api/resource.py",
 
line 278, in __getattr__
    raise AttributeError
AttributeError

However the draft review is created in the RB. The only problem is this 
error message that rbt post command is generating.  
Is it a known issue?  

Thanks.
Vlad

On Tuesday, August 20, 2013 6:35:03 PM UTC+3, Steven MacLeod wrote:
>
> The minimum Review Board version which fully supports the rbt commands is 
> RB 1.6.12. There were some changes to the web API in this version which 
> rbt relies on. Unfortunately, you won't be able to make use of most of rbt 
> without a newer version of Review Board.
>
> Admittedly, the error reporting here was terrible, but is something I'm 
> working on imporoving. 
>
>
> On Tue, Aug 20, 2013 at 8:43 AM, Akshaya Samantaray <
> akshaya.s...@gmail.com <javascript:>> wrote:
>
>> Thank for the response David .
>>
>> I had rbtool 0.4.1 so rbt was not there so i installed 0.5.2 and got rbt 
>> script  .
>>
>> To attach a arbitary file to existing review ,as per you i am using *"rbt 
>> attach 359 --filename=diff"* (where 359 is ReviewID), it giving below 
>> usage messge 
>>
>>
>> hostname:/vobs/ms 167 % *rbt attach 359 --filename=diff*
>> *Usage: rbt attach [options] <review-request-id> <file>*
>>
>> *rbt: error: Invalid number of arguments provided*
>>
>>
>> So i tried the command as *"rbt attach 359 diff"* (where 359 is the 
>> reviewID and diff is the filename) but it giving error *" 
>> CRITICAL:root:" .Please have look and let me know what could be the issue .*
>>
>> *Note:The reviewBoard server version 1.6.3 and Rbtools is 0.5.2 ,Python 
>> 2.7 *
>>
>> rbt attach 359 diff
>> CRITICAL:root:
>>
>> *below is the debug output :*
>>
>>  169 % rbt attach 359 diff -d
>> DEBUG:root:Checking for a Subversion repository...
>> DEBUG:root:Checking for a Git repository...
>> DEBUG:root:Checking for a Mercurial repository...
>> DEBUG:root:Checking for a CVS repository...
>> DEBUG:root:Checking for a Perforce repository...
>> DEBUG:root:Checking for a Plastic repository...
>> DEBUG:root:Checking for a ClearCase repository...
>> DEBUG:root:Running: cleartool pwv -short
>> DEBUG:root:Running: diff --version
>> DEBUG:root:Running: cleartool lsview -full -properties -cview
>> DEBUG:root:Running: cleartool describe -short vob:.
>> DEBUG:root:Running: cleartool pwv -root
>> DEBUG:root:repository info: Path: /vobs/ms-test, Base path: 
>> /vobs/ms-test, Supports changesets: False
>> DEBUG:root:Making HTTP GET request to https://ppsappdev02:443/api/
>> Traceback (most recent call last):
>>   File "/clearcase/tools/bin/rbt", line 9, in <module>
>>     load_entry_point('RBTools==0.5.2', 'console_scripts', 'rbt')()
>>   File 
>> "/usr/local/project/tools/ActivePython-2.7/lib/python2.7/site-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/main.py",
>>  
>> line 106, in main
>>     command.run_from_argv([RB_MAIN] + args)
>>   File 
>> "/usr/local/project/tools/ActivePython-2.7/lib/python2.7/site-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/__init__.py",
>>  
>> line 157, in run_from_argv
>>     exit_code = self.main(*args) or 0
>>   File 
>> "/usr/local/project/tools/ActivePython-2.7/lib/python2.7/site-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/attach.py",
>>  
>> line 67, in main
>>     request = self.get_review_request(request_id, api_root)
>>   File 
>> "/usr/local/project/tools/ActivePython-2.7/lib/python2.7/site-packages/RBTools-0.5.2-py2.7.egg/rbtools/commands/attach.py",
>>  
>> line 55, in get_review_request
>>     request = api_root.get_review_request(review_request_id=request_id)
>>   File 
>> "/usr/local/project/tools/ActivePython-2.7/lib/python2.7/site-packages/RBTools-0.5.2-py2.7.egg/rbtools/api/resource.py",
>>  
>> line 278, in __getattr__
>>     raise AttributeError
>> AttributeError
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Tuesday, August 20, 2013 1:01:04 AM UTC+5:30, David Trowbridge wrote:
>>
>>> You can't use "post-review --diff-filename" to upload arbitrary files. 
>>> The newer "rbt" commands will let you upload file attachments with "rbt 
>>> attach <review request ID> --filename=<filename>"
>>>
>>> For your existing 
>>>
>>>
>>>
>>> On Mon, Aug 19, 2013 at 4:35 AM, Akshaya Samantaray <
>>> akshaya.s...@gmail.com> wrote:
>>>
>>>> Hi David ,
>>>>
>>>> My object is just to upload a file which  can be any file (*.gif  or 
>>>> *.bmp ) (need not be a diff file) using commandline "post-review 
>>>> --diff-filename=file_name " to review-board server in our clear-case 
>>>> environment 
>>>>
>>>> How to do it using post-review in clearcase environment ? let me know 
>>>> if  any other option to post-review  is there ?
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>> On Monday, August 19, 2013 4:39:59 PM UTC+5:30, Akshaya Samantaray 
>>>> wrote:
>>>>>
>>>>> HI David ,
>>>>>
>>>>> Thanks for the response .
>>>>>
>>>>> d1.diff is just diff file i have created manually i.e the diff between 
>>>>> my dev branch changes & Integration branch changes redirected to file 
>>>>> called  d1.diff and i am trying to upload this manually created diff file 
>>>>> d1.diff using  "*post-review --diff-filename=d1.diff 
>>>>> --server="https://MyRbServer <https://myrbserver/>" .*
>>>>>
>>>>> I can upload this manually created diff file d1.diff file from GUI in 
>>>>> reviewboard  page  but not sure why its not uploading using  from command 
>>>>> line using  "post-review diff-filename=d1.diff --server="
>>>>> https://MyRbServer <https://myrbserver/>"" .I am not getting any clue 
>>>>> from the post-review debug log or reviewboard server log .
>>>>>
>>>>> Do i need to have any setup for apache or reviewboard server side 
>>>>>  configuration ?where can i check to get the exact clue for this error ? 
>>>>>
>>>>> Please have a look and get back to me .I am waiting for your response .
>>>>>
>>>>> Thanks
>>>>>
>>>>> >>> HTTP POSTing to 
>>>>> >>> https://MyRbServer/api/review-requests/370/diffs/<https://myrbserver/api/review-requests/370/diffs/>:
>>>>> >>>  
>>>>> {'basedir': u'/view/ppreleng_reviewboardAdmin/vobs/ms-test'}
>>>>> *>>> Got API Error 105 (HTTP code 400): One or more fields had errors*
>>>>> *>>> Error data: {u'fields': {u'path': [u'The diff file is empty']}, 
>>>>> u'stat': u'fail', u'err': {u'msg': u'One or more fields had errors', 
>>>>> u'code': 105}}*
>>>>>
>>>>> Error uploading diff
>>>>>
>>>>> The generated diff file was empty. This usually means no files were
>>>>> modified in this change.
>>>>>
>>>>> Try running with --output-diff and --debug for more information.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Friday, August 16, 2013 11:15:13 PM UTC+5:30, David Trowbridge 
>>>>> wrote:
>>>>>>
>>>>>> What is in "d1.diff"? The debug output says it's 27 bytes, which 
>>>>>> doesn't sound like a diff file.
>>>>>>
>>>>>> -David
>>>>>>
>>>>>>
>>>>>> On Fri, Aug 16, 2013 at 3:28 AM, Akshaya Samantaray <
>>>>>> akshaya.s...@gmail.com> wrote:
>>>>>>
>>>>>>> HI,
>>>>>>>
>>>>>>> Ours is base clearcase Enviroment .Our Reviewboard  server is LINUX 
>>>>>>> rhel machine with RB version 1.6.3 .i am running post-review from Linux 
>>>>>>> hosts having rb tools 0.4.1  
>>>>>>>
>>>>>>> I am facing same  issue while uploading existing diff file using 
>>>>>>> "*post-review 
>>>>>>> --diff-filename"* from linux host ..The review is getting created 
>>>>>>> but the diff file is not getting uploaded from command line post-review 
>>>>>>>  .I 
>>>>>>> can upload the diff file from GUI to the appropriate review ID but 
>>>>>>> failing 
>>>>>>>  from commandline "*post-review --diff-filename"*
>>>>>>>
>>>>>>> Let me know if any specfic Server side configuration missing  ? 
>>>>>>>  Please help .
>>>>>>>
>>>>>>> Error:
>>>>>>>
>>>>>>> 14 % *post-review --diff-filename=d1.diff 
>>>>>>> --server="https://MyRbServer <https://MyRbServer>"  -d*
>>>>>>> >>> RBTools 0.4.1
>>>>>>> >>> Home = /emc/ppreleng
>>>>>>> >>> HTTP GETting api/
>>>>>>> >>> HTTP GETting https://MyRbServer/api/info/
>>>>>>> >>> Using the new web API
>>>>>>> >>> HTTP GETting https://MyRbServer/api/repositories/
>>>>>>> >>> HTTP GETting https://MyRbServer/api/repositories/1/
>>>>>>> >>> HTTP GETting https://MyRbServer/api/repositories/1/info/
>>>>>>> >>> HTTP GETting https://MyRbServer/api/repositories/2/
>>>>>>> >>> HTTP GETting https://MyRbServer/api/repositories/2/info/
>>>>>>> >>> HTTP GETting https://MyRbServer/api/repositories/3/
>>>>>>> >>> HTTP GETting https://MyRbServer/api/repositories/3/info/
>>>>>>> >>> Attempting to create review request on /view/ppreleng_
>>>>>>> reviewboardAdmin/vobs/ms-test for None
>>>>>>> >>> HTTP POSTing to https://MyRbServer/api/review-requests/: 
>>>>>>> {'repository': u'/view/ppreleng_reviewboardAdmin/vobs/ms-test'}
>>>>>>> >>> Review request created
>>>>>>> >>> Uploading diff, size: 27
>>>>>>> >>> HTTP POSTing to https://MyRbServer/api/review-
>>>>>>> requests/370/diffs/: {'basedir': u'/view/ppreleng_reviewboardAd
>>>>>>> min/vobs/ms-test'}
>>>>>>> *>>> Got API Error 105 (HTTP code 400): One or more fields had 
>>>>>>> errors*
>>>>>>> *>>> Error data: {u'fields': {u'path': [u'The diff file is empty']}, 
>>>>>>> u'stat': u'fail', u'err': {u'msg': u'One or more fields had errors', 
>>>>>>> u'code': 105}}*
>>>>>>>
>>>>>>> Error uploading diff
>>>>>>>
>>>>>>> The generated diff file was empty. This usually means no files were
>>>>>>> modified in this change.
>>>>>>>
>>>>>>> Try running with --output-diff and --debug for more information.
>>>>>>>
>>>>>>> Your review request still exists, but the diff is not attached.
>>>>>>>
>>>>>>> On Tuesday, October 30, 2012 2:14:29 PM UTC+5:30, Alvin NG wrote:
>>>>>>>>
>>>>>>>> Hi, 
>>>>>>>>
>>>>>>>> I could not attach the difference between revisions to my review. 
>>>>>>>> It gives me the error "Got API Error 105 (HTTP code 400): One or 
>>>>>>>> more 
>>>>>>>> fields had errors". 
>>>>>>>> I have also tried to output the difference by using svn diff and 
>>>>>>>> attach the file to my review, but it still gives me the same error. 
>>>>>>>>
>>>>>>>> My command: post-review --server=http://localhost/reviewboard--debug 
>>>>>>>> --disable-proxy --target-group=proj_test -- revision=0:11 --diff- 
>>>>>>>> filename=diff.txt 
>>>>>>>>
>>>>>>>> (I'm not sure if this would also help) The repository server of my 
>>>>>>>> Reviewboard is like this svn://localhost/test_proj but not the 
>>>>>>>> local 
>>>>>>>> path to the reviewboard server 
>>>>>>>>
>>>>>>>> Many thanks, 
>>>>>>>> Alvin 
>>>>>>>>
>>>>>>>  -- 
>>>>>>> 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...@googlegroups.com
>>>>>>> For more options, visit this group at http://groups.google.com/group
>>>>>>> /reviewboard?hl=en
>>>>>>> --- 
>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>> Groups "reviewboard" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>> send an email to reviewboard...@googlegroups.com.
>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>
>>>>>>
>>>>>>  -- 
>>>> 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...@
>>>> googlegroups.com
>>>> For more options, visit this group at http://groups.google.com/
>>>> group/reviewboard?hl=en
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "reviewboard" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to reviewboard...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>  -- 
>> 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...@googlegroups.com <javascript:>
>> For more options, visit this group at 
>> http://groups.google.com/group/reviewboard?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to