we are trying to use the Twilio for Whatsapp Integration. It is mandatory to use a proxy for outgoing requests. Is there any possibility to configure the connector to use a proxy? Or any modification to the twilio.py file
Always receiving this Error Message:Max Retries exceeded, New Connection error, Unable to reach api.twilio.py
Thanks for responding,
I am not using twilio proxy rest api, there is a proxy server in http:121.2.12.19:1010. I want all the requests (traffic from rasa) to go via that proxy.
I feel there has to be a modification in this file rasa/twilio.py at master · RasaHQ/rasa · GitHub
It sounds like you’re need it to work as described here and here. Is that right?
If so, I think you’d add the TwilioHttpClient call with your proxy here.
Give that a try and if it works for you, send us a PR. Maybe this proxy call is only made if you specify proxy_endpoint or something like that in the endpoints.yml:
twilio:
account_sid: "ACbc2dxxxxxxxxxxxx19d54bdcd6e41186"
auth_token: "e231c197493a7122d475b4xxxxxxxxxx"
twilio_number: "+440123456789" # if using WhatsApp: "whatsapp:+440123456789"
proxy_endpoint: "http://121.2.12.19:1010"