Issue #9089 new

Internal server error when making PUT request to repositories/{owner}/{repo_slug}/pullrequests/{id} (BB-10193)

Rastislav Lamos
created an issue

I'm building continuous integration server and whenever somebody makes pull request, I listen to the hook and update description of the pull request with some additional data. It was working fine till about a week ago. Now it produces following error:

{ "error": { "message": "ModelForm has no model class specified.", "detail": " File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/piston/resource.py", line 208, 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 195, 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.12.0.10/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/bb/decorators.py", line 38, in wrap\n return f(request, *a, kwa)\n File "/opt/python/domains/bitbucket.org/2013-07-25/bitbucket/../bitbucket/apps/bb/decorators.py", line 374, in wrapped_function\n return func(args, kwargs)\n File "/opt/python/domains/bitbucket.org/2013-07-25/bitbucket/../bitbucket/apps/api/v10/decorators.py", line 78, in wrapped_function\n return func(*args, kwargs)\n File "/opt/python/domains/bitbucket.org/2013-07-25/bitbucket/../bitbucket/apps/api/v10/decorators.py", line 206, in wrapper\n return f(self, request, args, kwargs)\n File "/opt/python/domains/bitbucket.org/2013-07-25/bitbucket/../bitbucket/apps/api/decorators.py", line 35, in wrapper\n val = func(self, request, *args, kwargs)\n File "/opt/python/domains/bitbucket.org/2013-07-25/bitbucket/../bitbucket/apps/pullrequests/api/v20/handlers.py", line 97, in update\n user=request.user)\n File "/opt/python/domains/bitbucket.org/2013-07-25/bitbucket/../bitbucket/apps/pullrequests/api/v20/forms.py", line 167, in init\n super(PullRequestUpdateForm, self).init(*args, kwargs)\n File "/opt/python/domains/bitbucket.org/2013-07-25/bitbucket/../bitbucket/apps/pullrequests/forms.py", line 121, in __init__\n super(PullRequestCreateBaseForm, self).__init__(*args, kwargs)\n File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/forms/models.py", line 308, in init\n raise ValueError('ModelForm has no model class specified.')\n", "id": "52964884de284788b718f1608f83ac33" } }

Can you check it out please?

Comments (1)

  1. Log in to comment