Set proxy for the client.
Description
Describe your issue here.
What type of issue is this? (place an x in one of the [ ])
- [ ] bug
- [ ] enhancement (feature request)
- [ ] question
- [ ] documentation related
- [ ] testing related
- [ x] discussion
Requirements (place an x in each of the [ ])
- [ x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
- [x ] I've read and agree to the Code of Conduct.
- [x ] I've searched for any related issues and avoided creating a duplicate issue.
Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
slackclient version:
python version:
OS version(s):
Steps to reproduce:
1. 2. 3.
Expected result:
What you expected to happen
Actual result:
Hi Team,
Thank you for such a great work.
I have a query as i am planning to use this offering at an enterprise level. Since we are in a restricted environment we are forced to use web proxy to reach slack. How can i make sure that client accepts the proxy...
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.
@Saggi432 you can pass proxies into SlackClient on creation:
https://github.com/slackapi/python-slackclient/blob/8a6e36e55e56a3e41154b824a883fd16a272dc8f/slackclient/client.py#L23-L30
client_proxies = { 'https': 'https://127.0.0.1:443' }
client = SlackClient('xoxa...', proxies=client_proxies)
Thank you @Roach .. i will give a try and let you know. in the meantime i will close the request and re-open i face any issues.
https://github.com/slackapi/python-slackclient/blob/dcd4be428cb145184b5accb19a3739c81940d36a/slack/web/client.py#L12 - doesn't have that option :(
@bkyryliuk it actually does, its just specified in the base client
https://github.com/slackapi/python-slackclient/blob/master/slack/web/base_client.py#L44
https://github.com/slackapi/python-slackclient/blob/dcd4be428cb145184b5accb19a3739c81940d36a/slack/web/client.py#L12
- doesn't have that option :(
It has a proxy option, in the base_client: https://github.com/slackapi/python-slackclient/blob/dcd4be428cb145184b5accb19a3739c81940d36a/slack/web/base_client.py#L29-L50