[Buildbot] #3600: Error while handling API request

Buildbot trac trac at buildbot.net
Thu Aug 25 10:40:34 UTC 2016


#3600: Error while handling API request
--------------------+-----------------------
Reporter:  cmouse   |      Owner:
    Type:  defect   |     Status:  new
Priority:  minor    |  Milestone:  undecided
 Version:  0.9.0b9  |   Keywords:
--------------------+-----------------------
 Found this in log files after upgrade to 0.9.0rc2 and was browsing the
 site. No exact idea how this happened or where.

 {{{
 2016-08-25 13:35:59+0300 [-] while handling API request
         Traceback (most recent call last):
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
             result = result.throwExceptionIntoGenerator(g)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/python/failure.py", line 389, in
 throwExceptionIntoGenerator
             return g.throw(self.type, self.value, self.tb)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/www/rest.py", line 407, 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 "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/www/rest.py", line 122, in handleErrors
             yield
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/www/rest.py", line 339, in renderRest
             data = yield ep.get(rspec, kwargs)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks
             result = result.throwExceptionIntoGenerator(g)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/python/failure.py", line 389, in
 throwExceptionIntoGenerator
             return g.throw(self.type, self.value, self.tb)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/data/changes.py", line 73, in get
             changes = yield
 self.master.db.changes.getChangesForBuild(buildid)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 1128, in _inlineCallbacks
             result = g.send(result)
           File "/opt/buildbot/local/lib/python2.7/site-
 packages/buildbot/db/changes.py", line 201, in getChangesForBuild
             while ((toChanges.get(cb, {}).get('changeid') not in
 change['parent_changeids']) and
         exceptions.AttributeError: 'NoneType' object has no attribute
 'get'

 }}}

--
Ticket URL: <http://trac.buildbot.net/ticket/3600>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list