Opened 6 years ago

Closed 6 years ago

#2978 closed defect (fixed)

Loading the waterfall while a build is in progress return 500

Reported by: Ben Owned by: tardyp
Priority: critical Milestone: 0.9.0
Version: master Keywords: web
Cc:

Description

2014-10-27 16:39:17+0100 [-] while handling API request
        Traceback (most recent call last):
          File "/home/benoit/buildbot/openvas/venv/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1155, in gotResult
            _inlineCallbacks(r, g, deferred)
          File "/home/benoit/buildbot/openvas/venv/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
            result = g.send(result)
          File "/home/benoit/buildbot/buildbot/master/buildbot/www/rest.py", line 361, in renderRest
            request.write(data)
          File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
            self.gen.throw(type, value, traceback)
        --- <exception caught here> ---
          File "/home/benoit/buildbot/buildbot/master/buildbot/www/rest.py", line 111, in handleErrors
            yield
          File "/home/benoit/buildbot/buildbot/master/buildbot/www/rest.py", line 305, in renderRest
            data = rspec.apply(data)
          File "/home/benoit/buildbot/buildbot/master/buildbot/data/resultspec.py", line 161, in apply
            data.sort(cmp=cmpFunc)
          File "/home/benoit/buildbot/buildbot/master/buildbot/data/resultspec.py", line 157, in cmpFunc
            c = f(a, b)
          File "/home/benoit/buildbot/buildbot/master/buildbot/data/resultspec.py", line 150, in <lambda>
            order = [(lambda a, b, k=k[1:]: cmp(b[k], a[k]))
        exceptions.TypeError: can't compare datetime.datetime to NoneType

2014-10-27 16:39:17+0100 [-] REST error: TypeError("can't compare datetime.datetime to NoneType",)
2014-10-27 16:39:17+0100 [-] "192.168.201.254" - - [27/Oct/2014:15:39:17 +0000] "GET /api/v2/builds?limit=40&order=-complete_at HTTP/1.0" 500 72 "http://scaphoid.gb.intevation.de:8020/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"

Change History (4)

comment:1 Changed 6 years ago by dustin

  • Priority changed from major to critical

comment:2 Changed 6 years ago by tardyp

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

comment:3 Changed 6 years ago by tardyp

fix in GH-1313

comment:4 Changed 6 years ago by dustin

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