Comments (5)
I found temporary solution on this after trying to googling more on similar issues.
Below code works fine, however this has potential security issue. In addition, I think it needed to make a way to enable and disable certification verification during slacker creation.
response = method(API_BASE_URL.format(api=api),
timeout=self.timeout,
proxies=self.proxies,
verify=False,
**kwargs)
SB
from slacker.
I have a similar issue with a twist: our firewall blocks slack.com but allows workspace.slack.com. So I think I need to change the base URL used for the API request. Any thoughts?
from slacker.
I found a better fix for this. Actually, the root casue of this issue is that the user's own company cert file is not included in configuration file of certifi package (C:\Python\Python37-32\Lib\site-packages\certifi\cacert.pem). You can refer following link: https://stackoverflow.com/questions/52870795/windows-python-ssl-certificate-verify-failed
As described in the link, you need to add custom ca at the end of cacer.pem file.
Another link for doing this with python script : https://incognitjoe.github.io/adding-certs-to-requests.html
I think this link is also helpful understand certificate related issue for python: https://stackoverflow.com/questions/39356413/how-to-add-a-custom-ca-root-certificate-to-the-ca-store-used-by-pip-in-windows
from slacker.
I have a similar issue with a twist: our firewall blocks slack.com but allows workspace.slack.com. So I think I need to change the base URL used for the API request. Any thoughts?
Hi, @jonbackhaus. I didn't know that it's possible to use a different URL. What do you think about adding an optional init parameter like base_url
or base_api_url
where you can pass workspace.slack.com
instead?
from slacker.
I found a better fix for this. Actually, the root casue of this issue is that the user's own company cert file is not included in configuration file of certifi package (C:\Python\Python37-32\Lib\site-packages\certifi\cacert.pem). You can refer following link: https://stackoverflow.com/questions/52870795/windows-python-ssl-certificate-verify-failed
As described in the link, you need to add custom ca at the end of cacer.pem file.
Another link for doing this with python script : https://incognitjoe.github.io/adding-certs-to-requests.html
I think this link is also helpful understand certificate related issue for python: https://stackoverflow.com/questions/39356413/how-to-add-a-custom-ca-root-certificate-to-the-ca-store-used-by-pip-in-windows
Hi, @blcktgr73. So you can fix this issue without any code changes? Do we still need the verify
parameter?
from slacker.
Related Issues (20)
- Slack Token? Webhook URL? HOT 2
- files.upload: doesn't support thread_ts HOT 1
- Files.upload - file (image) in memory HOT 3
- File.upload - supports as_user? HOT 1
- Issue uploading files with a unicode filename
- Files libexec/punjab.tac, crossdomain.xml, etc are written into plist, but aren't installed
- Enabling Meetup preview HOT 2
- Renaming in 0.13 breaks slacker-cli HOT 2
- Fedora package HOT 1
- on error in "__init__.BaseAPI()", only the error text is shown, not the error details, unlike Slack's API Tester HOT 2
- How to add a thread message if using slacker HOT 1
- Add support for Analytics (Stats) API
- add support for remote files
- please add the testcases for each class
- Can't send messages with blocks HOT 1
- How to get a list of all users? HOT 1
- Missing Request Mime types HOT 2
- Issuing new legacy token is deprecated HOT 3
- Error handling of slacker.Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slacker.