[Buildbot] #3071: /builds/:id/changes returns error

Buildbot trac trac at buildbot.net
Mon Dec 1 13:01:27 UTC 2014


#3071: /builds/:id/changes returns error
-------------------+--------------------
Reporter:  Ben     |       Owner:
    Type:  defect  |      Status:  new
Priority:  major   |   Milestone:  0.9.0
 Version:  master  |  Resolution:
Keywords:  data    |
-------------------+--------------------

Comment (by Ben):

 Here is the full Traceback:

 {{{
 2014-12-01 13:59:50+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 1097, in _inlineCallbacks
             result = result.throwExceptionIntoGenerator(g)
           File "/home/benoit/buildbot/openvas/venv/local/lib/python2.7
 /site-packages/twisted/python/failure.py", line 389, in
 throwExceptionIntoGenerator
             return g.throw(self.type, self.value, self.tb)
           File
 "/home/benoit/buildbot/buildbot/master/buildbot/www/rest.py", line 376, 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 310, in
 renderRest
             data = yield ep.get(rspec, kwargs)
           File "/home/benoit/buildbot/openvas/venv/local/lib/python2.7
 /site-packages/twisted/internet/defer.py", line 1097, in _inlineCallbacks
             result = result.throwExceptionIntoGenerator(g)
           File "/home/benoit/buildbot/openvas/venv/local/lib/python2.7
 /site-packages/twisted/python/failure.py", line 389, in
 throwExceptionIntoGenerator
             return g.throw(self.type, self.value, self.tb)
           File
 "/home/benoit/buildbot/buildbot/master/buildbot/data/changes.py", line 73,
 in get
             changes = yield
 self.master.db.changes.getChangesForBuild(buildid)
           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/db/changes.py", line 192,
 in getChangesForBuild
             while ((toChanges[cb]['changeid'] not in
 change['parent_changeids']) and
         exceptions.TypeError: 'NoneType' object has no attribute
 '__getitem__'

 2014-12-01 13:59:50+0100 [-] REST error: TypeError("'NoneType' object has
 no attribute '__getitem__'",)
 }}}

--
Ticket URL: <http://trac.buildbot.net/ticket/3071#comment:5>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list