What version are you running?
RBTools 0.6.1
What's the URL of the page containing the problem?
n/a
What steps will reproduce the problem?
1. rbt post
What is the expected output? What do you see instead?
Expect an legit error message about being unable to connect to the SVN server.
What operating system are you using? What browser?
Windows 7, Python 2.7.3 32-bit
Please provide any additional information below.
>>> Got API Error 105 (HTTP code 400): One or more fields had errors
>>> Error data: {u'fields': {u'path': [u"OPTIONS of 'http://192.168.XX.XXX:XXXX/
path_details': could not connect to server (http://192.168.XX.XXX:XXXX)"]}, u'stat': u'fail', u'err': {u'msg': u'One or more fields had errors', u'code': 105}}
Traceback (most recent call last):
File "C:\Python27\Scripts\rbt-script.py", line 9, in <module>
load_entry_point('rbtools==0.6.1', 'console_scripts', 'rbt')()
File "C:\Python27\lib\site-packages\rbtools-0.6.1-py2.7.egg\rbtools\commands\m
ain.py", line 134, in main
command.run_from_argv([RB_MAIN, command_name] + args)
File "C:\Python27\lib\site-packages\rbtools-0.6.1-py2.7.egg\rbtools\commands\_
_init__.py", line 416, in run_from_argv
exit_code = self.main(*args) or 0
File "C:\Python27\lib\site-packages\rbtools-0.6.1-py2.7.egg\rbtools\commands\p
ost.py", line 784, in main
submit_as=self.options.submit_as)
File "C:\Python27\lib\site-packages\rbtools-0.6.1-py2.7.egg\rbtools\commands\p
ost.py", line 543, in post_request
error_msg.append(e.decode('utf-8') + u'\n')
AttributeError: 'BadRequestError' object has no attribute 'decode'
Looks like this was a recent change (https://github.com/reviewboard/rbtools/commit/afd67a91b961f126f5bc796ebeefe0a1bf4a6905) to address bug 3376.