Issue #8087 resolved

Internal server error on rest get tags call... & changesets call

Willam Hegarty
created an issue

When trying a get on the url for our project alpha_developer/alpha_services

https://bitbucket.org/api/1.0/repositories/alpha_developer/alpha_services/tags/?start=1a58b16f53368a80a9126abd921270a6c7bcdf8a&limit=40

We get the returned json exception (this happens with any sha)

{ "error": { "message": "Internal server error", "ref": "b891fcef2a9f4596a6699fa1d736e18e", "detail": " File \"/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/piston/resource.py\", line 182, 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 174, 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-1.12.0.56/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 371, 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 75, in wrapped_function\n return func(*args, kwargs)\n File \"/opt/python/domains/bitbucket.org/2013-07-25/bitbucket/../bitbucket/apps/api/v10/handlers.py\", line 1632, in read\n request.repository.history.tags()}\n File \"/opt/python/domains/bitbucket.org/2013-07-25/bitbucket/../bitbucket/apps/api/v10/handlers.py\", line 1631, in <dictcomp>\n return {tag.name: csetdict(tag.resolve()) for tag in\n File \"/opt/python/domains/bitbucket.org/2013-07-25/bitbucket/../bitbucket/apps/repo2/utils.py\", line 170, in csetdict\n branches = [b.name for b in cset.branches()]\n File \"/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/orochi/git.py\", line 255, in branches\n return GitRefList([b for b in self.repo.branches()\n File \"/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/orochi/git.py\", line 1253, in branches\n for fqname in self._repo.listall_references():\n File \"/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/interruptingcow/init.py\", line 56, in handler\n raise exception\n" } }

Comments (5)

  1. Willam Hegarty reporter

    I failed to add that this is called through the ruby bitbucket_rest_api gem. So it is formatting the URL. But the call had been working before today (i.e. within the last week). I have noticed that if I remove the '/' from the url part "tags/?" the exception does not occur. ....scratch that... it is failing with the '/' removed also

  2. Log in to comment