Fetching Metadata with custom connector

I want to pass metadata as input to rasa server along with sender id and message.

I followed the steps mentioned in - how-to-pass-metadata-in-post-request-and-then-extract-it However, I am facing errors. The steps i followed are-

  1. Created a custom connector file as described in the above link and stored it in connectors folder in root folder of bot- custom_channel.py (4.6 KB)

  2. edited the credentials file and added - **

connectors.custom_channel.MyioInput:

** 3. Created custom action to print the metadata for checking - actions.py (1.1 KB)

  1. edited my app.py file app.py (857 Bytes) which is for FLASK api and inserted appropriate url - "http://localhost:5005/webhooks/myio/webhook"

  2. Now , using POSTMAN, i am sending the following json message to rasa server -

> {“sender”: “sandeep”, “message”: “hi”, “metadata”: “name1”:“file1.wav”,“name2”:“file2.wav”}}

Still, the metadata is not fetched by the custom action and the error on rasa server terminal is - error.txt (7.8 KB)

Please suggest what I am doing wrong. I followed all the steps from the forum link posted above.