In [11]: exp.createMergeProposal(merge_target=master, initial_comment='testing')
---------------------------------------------------------------------------
ServerError Traceback (most recent call last)
<ipython-input-11-456b6b6f248b> in <module>()
----> 1 exp.createMergeProposal(merge_target=master, initial_comment='testing')
/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.pyc in __call__(self, *args, **kwargs)
608 response, content = self.root._browser._request(
609 url, in_representation, http_method.upper(),
--> 610 extra_headers=extra_headers)
611
612 if response.status == 201:
/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.pyc in _request(self, url, data, method, media_type, extra_headers)
424 error = error_for(response, content)
425 if error is not None:
--> 426 raise error
427 return response, content
428
ServerError: HTTP Error 500: Internal Server Error
Response headers:
---
-content-encoding: gzip
connection: close
content-length: 5526
content-type: text/plain
date: Mon, 27 Apr 2015 02:31:05 GMT
server: zope.server.http (HTTP)
status: 500
vary: Accept-Encoding
x-lazr-oopsid: OOPS-1bb2fb2f685f1978c7e6bd1713796235
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---
Expected unicode, found <type 'str'>: 'master'
Traceback (most recent call last):
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/zope.publisher-3.12.6-py2.7.egg/zope/publisher/publish.py", line 132, in publish
result = publication.callObject(request, obj)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/publisher.py", line 212, in callObject
WebServicePublicationMixin, self).callObject(request, object)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/lib/lp/services/webapp/publication.py", line 463, in callObject
return mapply(ob, request.getPositionalArguments(), request)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/zope.publisher-3.12.6-py2.7.egg/zope/publisher/publish.py", line 107, in mapply
return debug_call(obj, args)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/zope.publisher-3.12.6-py2.7.egg/zope/publisher/publish.py", line 113, in debug_call
return obj(*args)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/_resource.py", line 925, in __call__
result = self.do_POST()
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/_resource.py", line 757, in do_POST
return self.handleCustomPOST(operation_name)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/_resource.py", line 1397, in handleCustomPOST
value = super(EntryResource, self).handleCustomPOST(operation_name)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/_resource.py", line 741, in handleCustomPOST
return operation()
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/_operation.py", line 73, in __call__
values, errors = self.validate()
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/_operation.py", line 192, in validate
self.request.form.get(name))
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/marshallers.py", line 173, in marshall_from_request
return self._marshall_from_request(value)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/marshallers.py", line 180, in _marshall_from_request
return self._marshall_from_json_data(value)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/marshallers.py", line 640, in _marshall_from_json_data
resource = self.dereference_url(value)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/marshallers.py", line 120, in dereference_url
return request.traverse(root)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/publisher.py", line 275, in traverse
result = super(WebServiceRequestTraversal, self).traverse(ob)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/zope.publisher-3.12.6-py2.7.egg/zope/publisher/browser.py", line 540, in traverse
ob = super(BrowserRequest, self).traverse(obj)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/zope.publisher-3.12.6-py2.7.egg/zope/publisher/http.py", line 457, in traverse
ob = super(HTTPRequest, self).traverse(obj)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/zope.publisher-3.12.6-py2.7.egg/zope/publisher/base.py", line 260, in traverse
obj = publication.traverseName(self, obj, entry_name)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/lazr.restful-0.19.10-py2.7.egg/lazr/restful/publisher.py", line 118, in traverseName
request, ob, name)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/zope.app.publication-3.12.0-py2.7.egg/zope/app/publication/zopepublication.py", line 200, in traverseName
ob2 = adapter.publishTraverse(request, nm)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/lib/lp/services/webapp/publisher.py", line 905, in publishTraverse
nextobj = self._publishTraverse(request, name)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/lib/lp/services/webapp/publisher.py", line 983, in _publishTraverse
nextobj = handler(self)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/lib/lp/code/browser/gitrepository.py", line 74, in traverse_ref
ref = self.context.getRefByPath("/".join(ref_segments))
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/lib/lp/code/model/gitrepository.py", line 373, in getRefByPath
GitRef.path == try_path).one()
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.7-linux-x86_64.egg/storm/expr.py", line 412, in __eq__
other = getattr(self, "variable_factory", Variable)(value=other)
File "/srv/qastaging.launchpad.net/qastaging/launchpad-rev-17453/eggs/storm-0.19.0.99_lpwithnodatetime_r406-py2.7-linux-x86_64.egg/storm/variables.py", line 396, in parse_set
% (type(value), value))
TypeError: Expected unicode, found <type 'str'>: 'master'