[Buildbot-commits] [Buildbot] #1947: exceptions.TypeError: <buildbot.status.builder.BuildStepStatus instance at 0x3da3c20> is not JSON serializable

Buildbot nobody at buildbot.net
Sat May 7 19:11:56 UTC 2011


#1947: exceptions.TypeError: <buildbot.status.builder.BuildStepStatus instance at
0x3da3c20> is not JSON serializable
-----------------------+--------------------
Reporter:  tom.prince  |       Owner:
    Type:  defect      |      Status:  new
Priority:  critical    |   Milestone:  0.8.4
 Version:  0.8.3p1     |  Resolution:
Keywords:  web         |
-----------------------+--------------------

Comment (by dustin):

 I can duplicate the original error with
  /json/builders/builder/builds/_all/0/steps

 A different, but related bug: doing a recursive wget on /json, I get
 {{{
 2011-05-07 14:05:47-0500 [HTTPChannel,45,172.16.1.18] Unhandled Error
         Traceback (most recent call last):
           File
 "/home/dustin/code/buildbot/t/buildbot/master/buildbot/status/web/status_json.py",
 line 188, in <lambda>
             d = defer.maybeDeferred(lambda : self.content(request))
           File "/home/dustin/code/buildbot/t/buildbot/sand26/lib/python2.6
 /site-packages/twisted/internet/defer.py", line 697, in unwindGenerator
             return _deferGenerator(f(*args, **kwargs), Deferred())
           File "/home/dustin/code/buildbot/t/buildbot/sand26/lib/python2.6
 /site-packages/twisted/internet/defer.py", line 600, in _deferGenerator
             result = g.next()
           File
 "/home/dustin/code/buildbot/t/buildbot/master/buildbot/status/web/status_json.py",
 line 255, in content
             defer.maybeDeferred(lambda :
         --- <exception caught here> ---
           File "/home/dustin/code/buildbot/t/buildbot/sand26/lib/python2.6
 /site-packages/twisted/internet/defer.py", line 102, in maybeDeferred
             result = f(*args, **kw)
           File
 "/home/dustin/code/buildbot/t/buildbot/master/buildbot/status/web/status_json.py",
 line 256, in <lambda>
             child.asDict(request)))
         exceptions.AttributeError: NoResource instance has no attribute
 'asDict'
 }}}
 for
  /json/builders/builder/builds?select=-1&select=-2&as_text=1
 /json/builders/builder/builds?select=-1/source_stamp/changes&select=-2/source_stamp/changes&as_text=1

 I think this is because I didn't have any changes present - adding some
 builds with changes fixed it.

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


More information about the Commits mailing list