# Utter\_message Not printing any response

**URL:** <https://forum.rasa.com/t/utter-message-not-printing-any-response/23586>\
**Category:** Rasa Open Source\
**Created:** [January 16, 2020, 10:16am UTC](https://forum.rasa.com/t/utter-message-not-printing-any-response/23586 "2020-01-16T10:16:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kodah](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kodah](https://forum.rasa.com/u/Kodah)\
**Post date:** [January 16, 2020, 10:16am UTC](https://forum.rasa.com/t/utter-message-not-printing-any-response/23586/1 "2020-01-16T10:16:55Z")

</div>

Here are my versions :  
rasa\_nlu :0.15.1 , rasa\_core : 0.14.5 ,rasa\_core\_sdk : 1.6.1

Here is the custom action file :

class ApiAction(Action): def name(self): return “custom\_action\_medicinesearch”

```
  def run(self, dispatcher: CollectingDispatcher , tracker, domain):
    
      medicine_name = tracker.get_slot('medicine_name') 
      print("slot:" ,medicine_name)
      filename = "Sheet1.json"  
      datastore = dict()
      with open(filename, 'r') as f:
            datastore = json.load(f)
      dispatcher.utter_message('Please wait while I search for {}'.format(medicine_name))  
      flag =0
      response = "couldnot find that !"
      for items in datastore: 
            if items['Brand'] == medicine_name:
                  #print("Medicine Name : " ,items['Brand'])
                  #print("Price : " ,items['Price(In Rs.)'])
                  response = str(items['Brand']) + "\n" + "costs rupees " + str(items['Price(In Rs.)'])
                  flag = 1
                  break
      if flag ==0 :
          print("sorry I could not find that for you :(")
      print("printing :" ,response)
      dispatcher.utter_message(response)
      return[SlotSet("price_details",response)]  

```

* * *

The custom actions.py is getting registered successfully and the output , ie medicine name and price are stored in response is printed in docker container .

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/2/21e3fb1a6feace6b4108e3dd89bb179af733eac1.png)

* * *

However , the utter message command is not working and its reflecting on the chat window . It is jumping to the next action in the story without printing message ☹

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/7/72cf97dc842451f257394030d0b0d9f8220262e8.png)

Please Help !

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [January 20, 2020, 10:16am UTC](https://forum.rasa.com/t/utter-message-not-printing-any-response/23586/2 "2020-01-20T10:16:20Z")

</div>

Hi @Kodah you’re mentioning that you’re using separate versions for rasa\_nlu and rasa\_core - we no longer support those versions. I would suggest that you use rasa version `1.6.1` to get this functioning correctly. You can install that by running:

```auto
pip install rasa==1.6.1

```

---

<div class="post-metadata">

**Author:** ![Kodah](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kodah](https://forum.rasa.com/u/Kodah)\
**Post date:** [January 31, 2020, 10:20pm UTC](https://forum.rasa.com/t/utter-message-not-printing-any-response/23586/3 "2020-01-31T22:20:13Z")

</div>

Thank you so much Akelad for your response , will try it out !

---

<div class="post-metadata">

**Author:** ![zaidalvi](https://avatars.discourse-cdn.com/v4/letter/z/ecc23a/32.png) [@zaidalvi](https://forum.rasa.com/u/zaidalvi)\
**Post date:** [April 16, 2020, 10:46am UTC](https://forum.rasa.com/t/utter-message-not-printing-any-response/23586/4 "2020-04-16T10:46:40Z")

</div>

Hi @Kodah, I am facing the same issue. Were you able to fix yours?
