Details
-
Bug
-
Resolution: Fixed
-
Medium
Description
The requests in version 1 :
- /api/1.0/repositories/accountname/repo
- DELETE, PUT, GET methods work but the POST method not work.
-
- HTTP/1.1 500 Internal Server Error.
#!json {"error": {"message": "create() got an unexpected keyword argument 'username'", "detail": " File \"/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/piston/resource.py\", line 198, in __call__\n result = checked_meth(request, *args, **kwargs)\n File \"/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/piston/resource.py\", line 185, in checked_meth\n return meth(*args, **kwargs)\n File \"/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/newrelic-2.5.0.94/newrelic/hooks/component_piston.py\", line 33, in __call__\n return self._nr_wrapped(*args, **kwargs)\n File \"/opt/python/domains/bitbucket.org/2013-07-25/bitbucket/../bitbucket/apps/api/v10/decorators.py\", line 334, in wrapper\n return func(*args, **kwargs)\n", "id": "61420193b0c14d11b8bb4a5555275ca6"}}
.......................................................................
The requests in version 2 :
- /api/2.0/repositories/accountname/repo
- DELETE, POST, GET methods work but the PUT method not work.
-
- HTTP/1.1 405 Method Not Allowed.