# Slack connector has to use proxy for outgoing requests in Docker

**URL:** <https://forum.rasa.com/t/slack-connector-has-to-use-proxy-for-outgoing-requests-in-docker/30845>\
**Category:** Rasa Open Source\
**Created:** [June 30, 2020, 3:30pm UTC](https://forum.rasa.com/t/slack-connector-has-to-use-proxy-for-outgoing-requests-in-docker/30845 "2020-06-30T15:30:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tobias\_Frank](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_frank/32/9461_2.png) [@Tobias\_Frank](https://forum.rasa.com/u/Tobias_Frank)\
**Post date:** [June 30, 2020, 3:30pm UTC](https://forum.rasa.com/t/slack-connector-has-to-use-proxy-for-outgoing-requests-in-docker/30845/1 "2020-06-30T15:30:51Z")

</div>

Hey there,

we are trying to use the slack connector in a Docker container in our Kubernetes cluster for communication. It is mandatory to use a proxy for outgoing requests. Is there any possibility to configure the connector to use a proxy? Or any other workaround to fit my needs?

Always receiving this Error Message: `ERROR rasa.core.channels.slack - Exception when trying to handle message.`

We´ve already tryed to set the ENV HTTP\_PROXY=“[xyz.com](http://xyz.com)” within our container via docker\_compose.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [July 1, 2020, 8:55pm UTC](https://forum.rasa.com/t/slack-connector-has-to-use-proxy-for-outgoing-requests-in-docker/30845/2 "2020-07-01T20:55:38Z")

</div>

Hi Tobias and welcome to the forum.

I think you would need to use the [proxy](https://github.com/slackapi/python-slackclient#proxy) option on the python slack client library. Our Slack channel doesn’t currently support this option.

I opened [issue #6123](https://github.com/RasaHQ/rasa/issues/6123) for this request and included a link to the channel source code line where this would need to be added. Would you consider adding this?

Greg

---

<div class="post-metadata">

**Author:** ![Tobias\_Frank](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_frank/32/9461_2.png) [@Tobias\_Frank](https://forum.rasa.com/u/Tobias_Frank)\
**Post date:** [July 2, 2020, 7:03am UTC](https://forum.rasa.com/t/slack-connector-has-to-use-proxy-for-outgoing-requests-in-docker/30845/3 "2020-07-02T07:03:40Z")

</div>

Hey Greg,

thx for your response, sure i will give it a shot.

Best Tobi

---

<div class="post-metadata">

**Author:** ![malathi](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@malathi](https://forum.rasa.com/u/malathi)\
**Post date:** [August 24, 2020, 6:17pm UTC](https://forum.rasa.com/t/slack-connector-has-to-use-proxy-for-outgoing-requests-in-docker/30845/4 "2020-08-24T18:17:58Z")

</div>

Hi, We also need to send outgoing requests through proxy. Tried to apply the fix for [issue #6123](https://github.com/RasaHQ/rasa/issues/6123). it says only http proxies allowed. But our proxy configured with https as per mandate. Can this support https, it would be greatful or let me know in case of any alternatives

regards

---

<div class="post-metadata">

**Author:** ![Tobias\_Frank](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_frank/32/9461_2.png) [@Tobias\_Frank](https://forum.rasa.com/u/Tobias_Frank)\
**Post date:** [August 25, 2020, 9:22am UTC](https://forum.rasa.com/t/slack-connector-has-to-use-proxy-for-outgoing-requests-in-docker/30845/5 "2020-08-25T09:22:01Z")

</div>

The problem exists in the httpclient used by the Slack Python SDK. As i read correct, the aiohttp-client does not support https directly. Mentioned here: [https://github.com/slackapi/python-slackclient/issues/557](https://github.com/slackapi/python-slackclient/issues/557)

---

<div class="post-metadata">

**Author:** ![BrandonDyer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/brandondyer/32/10768_2.png) [@BrandonDyer](https://forum.rasa.com/u/BrandonDyer)\
**Post date:** [August 31, 2020, 12:29pm UTC](https://forum.rasa.com/t/slack-connector-has-to-use-proxy-for-outgoing-requests-in-docker/30845/6 "2020-08-31T12:29:53Z")

</div>

Well it is sad that you don’t support proxy option. I always use it today because there are a lot of creeps on internet and I do not want anyone to know my real location. I think that it is normal to do this now. There are some websites that are different in other countries, like Netflix and it is nice to see the difference. The one that you should always use a proxy on is TPB and good thing is that there is [a list of proxies for](https://avoidcensorship.org/) it. When it goes down in one place it is not that hard to get it to work really, just use one from the list. That is why it is better to have a proxy as an option.

Best regards
