# UnserializableValueError

**URL:** <https://discourse.nameko.io/t/unserializablevalueerror/445>\
**Category:** Uncategorized\
**Created:** [June 3, 2019, 12:40pm UTC](https://discourse.nameko.io/t/unserializablevalueerror/445 "2019-06-03T12:40:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMmaomao](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@MMmaomao](https://discourse.nameko.io/u/MMmaomao)\
**Post date:** [June 3, 2019, 12:40pm UTC](https://discourse.nameko.io/t/unserializablevalueerror/445/1 "2019-06-03T12:40:40Z")

</div>

Hi guys,  
I see this error when I using rpc method to get a very big dict.

```auto
The dict is like
{"asd": [],
 "asdas": []}

```

I just modified the rpc.py and it worked. Please take a look at it.

```auto
        error = self.resp_body.get('error')
        if error:
            if error["exc_type"] == "UnserializableValueError":
                return eval(eval(error["value"].replace("Unserializable value: ", "")))
            raise deserialize(error)
        return self.resp_body['result']

```

---

<div class="post-metadata">

**Author:** ![MMmaomao](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@MMmaomao](https://discourse.nameko.io/u/MMmaomao)\
**Post date:** [June 14, 2019, 6:56am UTC](https://discourse.nameko.io/t/unserializablevalueerror/445/2 "2019-06-14T06:56:40Z")

</div>

![image](https://canada1.discourse-cdn.com/flex031/uploads/nameko/original/1X/65a174efc4b4a2d277c50009d23003631ed8304d.png)

---

<div class="post-metadata">

**Author:** ![mattbennett](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.nameko.io/mattbennett/32/13_2.png) [@mattbennett](https://discourse.nameko.io/u/mattbennett)\
**Post date:** [June 14, 2019, 6:59am UTC](https://discourse.nameko.io/t/unserializablevalueerror/445/3 "2019-06-14T06:59:18Z")

</div>

@MMmaomao sorry, this got stuck in a moderation queue. Discourse thought you were a bot!

The screenshot cuts off the interesting part of the stacktrace. There is something in your return value that is not serializable to json.
