Connect to nlu model from custom component

Hello

I have created a custom component that sends the received utterance to the same rasa instance ( on http://localhost:5005/model/parse ) to predict the intent. This is somehow getting read timeout error.

I can see the utterance landed in my custom component and a http connection is started to the specificed URL. However, it times out after a certain period of time. Tried increasing the timeout as well. But no luck.

Is this even possible ? Would like to know your thoughts.

pipeline:

  - name: Mycustomcomponent
    rasa_nlu_url: http://0.0.0.0:5005/model/parse
    confidence_threshold: 0.7
<  - All other components >
- ...
- ...