AttributeError: 'NoneType' object has no attribute 'render_json'

Bug #1569984 reported by Andres Rodriguez on 2016-04-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mike Pontillo

Bug Description

2016-04-13 23:58:48 [-] Error on request (39) subnet.list: 'NoneType' object has no attribute 'render_json'
        Traceback (most recent call last):
          File "/usr/lib/python3.5/", line 862, in run
            self._target(*self._args, **self._kwargs)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/", line 841, in worker
            return target()
          File "/usr/lib/python3/dist-packages/twisted/_threads/", line 46, in work
          File "/usr/lib/python3/dist-packages/twisted/_threads/", line 190, in doWork
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/twisted/python/", line 246, in inContext
            result = inContext.theWork()
          File "/usr/lib/python3/dist-packages/twisted/python/", line 262, in <lambda>
            inContext.theWork = lambda:, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/", line 81, in callWithContext
            return func(*args,**kw)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/", line 874, in callInContext
            return func(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/", line 516, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/", line 343, in retrier
            return func(*args, **kwargs)
          File "/usr/lib/python3.5/", line 30, in inner
            return func(*args, **kwds)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/", line 343, in list
            for obj in objs
          File "/usr/lib/python3/dist-packages/maasserver/websockets/", line 343, in <listcomp>
            for obj in objs
          File "/usr/lib/python3/dist-packages/maasserver/websockets/", line 195, in full_dehydrate
            return self.dehydrate(obj, data, for_list=for_list)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/", line 43, in dehydrate
            include_ranges=True, include_suggestions=True)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/", line 297, in render_json
        builtins.AttributeError: 'NoneType' object has no attribute 'render_json'

Related branches

Changed in maas:
assignee: nobody → Mike Pontillo (mpontillo)
importance: Undecided → Critical
status: New → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers