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

Buildbot nobody at buildbot.net
Wed May 4 21:13:02 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:  major       |  Milestone:  0.8.4
 Version:  0.8.3p1     |   Keywords:  web json
-----------------------+----------------------
 2011-05-04 16:39:41-0400 [HTTPChannel,1117,127.0.0.1] Unhandled Error
         Traceback (most recent call last):
           File "/Depot/BuildBot/bbot/lib/python2.7/site-
 packages/buildbot/status/web/status_json.py", line 188, in render_GET
             d = defer.maybeDeferred(lambda : self.content(request))
           File "/usr/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 133, in maybeDeferred
             result = f(*args, **kw)
           File "/Depot/BuildBot/bbot/lib/python2.7/site-
 packages/buildbot/status/web/status_json.py", line 188, in <lambda>
             d = defer.maybeDeferred(lambda : self.content(request))
           File "/usr/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 964, in unwindGenerator
             return _deferGenerator(f(*args, **kwargs), Deferred())
         --- <exception caught here> ---
           File "/usr/lib/python2.7/site-
 packages/twisted/internet/defer.py", line 866, in _deferGenerator
             result = g.next()
           File "/Depot/BuildBot/bbot/lib/python2.7/site-
 packages/buildbot/status/web/status_json.py", line 272, in content
             data = json.dumps(data, sort_keys=True, separators=(',',':'))
           File "/usr/lib/python2.7/site-packages/simplejson/__init__.py",
 line 269, in dumps
             use_decimal=use_decimal, **kw).encode(obj)
           File "/usr/lib/python2.7/site-packages/simplejson/encoder.py",
 line 214, in encode
             chunks = self.iterencode(o, _one_shot=True)
           File "/usr/lib/python2.7/site-packages/simplejson/encoder.py",
 line 282, in iterencode
             return _iterencode(o, 0)
           File "/usr/lib/python2.7/site-packages/simplejson/encoder.py",
 line 190, in default
             raise TypeError(repr(o) + " is not JSON serializable")
         exceptions.TypeError: <buildbot.status.builder.BuildStepStatus
 instance at 0x3da3c20> is not JSON serializable

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


More information about the Commits mailing list