Opened 4 years ago

Closed 3 years ago

#3580 closed defect (fixed)

error not properly reported if buildbotUrl is miss configured

Reported by: tardyp Owned by: tardyp
Priority: major Milestone: 0.9.0
Version: master Keywords:


if buildbotUrl is misconfigured, a forcebuild will raise a invalid origin error, but it has a bad error code, which generates the wrong error, and is difficult to debug:

2016-07-12 13:29:09+0000 [HTTPChannel,26,] While rendering resource:
        Traceback (most recent call last):
          File "/usr/lib/python2.7/site-packages/buildbot/www/", line 431, in render
            return self.asyncRenderHelper(request, self.asyncRender, writeError)
          File "/usr/lib/python2.7/site-packages/buildbot/www/", line 83, in asyncRenderHelper
          File "/usr/lib/python2.7/site-packages/twisted/internet/", line 328, in addErrback
          File "/usr/lib/python2.7/site-packages/twisted/internet/", line 306, in addCallbacks
        --- <exception caught here> ---
          File "/usr/lib/python2.7/site-packages/twisted/internet/", line 588, in _runCallbacks
            current.result = callback(current.result, *args, **kw)
          File "/usr/lib/python2.7/site-packages/buildbot/www/", line 87, in failHttpError
            writeError(e.message, errcode=e.status)
          File "/usr/lib/python2.7/site-packages/buildbot/www/", line 427, in writeError
          File "/usr/lib/python2.7/site-packages/twisted/web/", line 1028, in setResponseCode
            raise TypeError("HTTP response code must be int or long")
        exceptions.TypeError: HTTP response code must be int or long

Change History (2)

comment:1 Changed 4 years ago by tardyp

  • Owner set to tardyp
  • Status changed from new to assigned

comment:2 Changed 3 years ago by tardyp

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.