# POST response - Json Error

**URL:** <https://forum.rasa.com/t/post-response-json-error/24777>\
**Category:** Rasa Open Source\
**Created:** [February 14, 2020, 9:15am UTC](https://forum.rasa.com/t/post-response-json-error/24777 "2020-02-14T09:15:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![varunsapre10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/varunsapre10/32/6520_2.png) [@varunsapre10](https://forum.rasa.com/u/varunsapre10)\
**Post date:** [February 14, 2020, 9:15am UTC](https://forum.rasa.com/t/post-response-json-error/24777/1 "2020-02-14T09:15:03Z")

</div>

![1](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/e380033e04d1310bea9c1eb78239682da93f88c0.png)The above image shows my rasa custom action in which I am calling an API to get a response in the format :

 ![3](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/2/22f971af37242cec6f032731e6b997c7e7e938f9.png)

![2](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/3/3270943be29dd09c19201436fb3de7f44da91749.png)

This image shows a python file with exactly the same code(without rasa part). The python file runs fine and returns the above expected output. But during the execution of custom action of rasa, the response is empty(). It returns this error:

 ![4](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/c/c4373675ac181ffc4be2537654fa2d74beea4170.png)

I am not able to understand the problem here.

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [February 14, 2020, 4:14pm UTC](https://forum.rasa.com/t/post-response-json-error/24777/2 "2020-02-14T16:14:48Z")

</div>

hey @varunsapre10, the data which you are trying to send using `dispatcher.utter_message(result)` is in JSON format so if you want to send `json` data you use the `json_message` parameter of the `dispatcher.utter_message()` 😅

> ![Screenshot%20from%202020-02-14%2021-40-50](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/9/9771471fd1fe01683281d2a2afef63b2fa695654.png)

For your reference: [Introduction to Rasa Action Servers](https://rasa.com/docs/rasa/api/rasa-sdk/#rasa_sdk.executor.CollectingDispatcher.utter_message)

Hope it helps 🙂

---

<div class="post-metadata">

**Author:** ![varunsapre10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/varunsapre10/32/6520_2.png) [@varunsapre10](https://forum.rasa.com/u/varunsapre10)\
**Post date:** [February 15, 2020, 9:03am UTC](https://forum.rasa.com/t/post-response-json-error/24777/3 "2020-02-15T09:03:29Z")

</div>

😄 Thanks @JiteshGaikwad, “json\_message” worked for me.
