-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL Exceptions when using single file binary #59
Comments
Interesting.. how did you install ntfy? (other useful info potentially: |
I installed it similar to the readme instructions. Only difference I had to put it in /usr/local/bin due to some restrictions I have on my current system.
|
Thanks, I'll check it out when I get a chance (not super easy since I don't own a mac) |
Just got a similar report via email from a user on a RaspberyPi. Bad QA on my part, it seems to be an issue with the using requests from the single file binary. The problem presents on Linux too. I'll try get a fix ASAP. For now, please $ sudo pip install ntfy |
Thanks! using |
https://stackoverflow.com/questions/35973137/sslerror-not-a-directory seems to be close to the problem. In theory this should happen on Windows too when using a single exe version ntfy. |
same error happened
ntfy --version
2.2.0 Installed: sudo /usr/bin/easy_install pip
sudo /usr/local/bin/pip psutil
git clone https://github.com/dschep/ntfy.git ntfy.git
pushd ntfy.git
bash zipapp.sh
cp dist/ntfy ~/bin/ Configured: backends:
- pushbullet
pushbullet:
access_token: ...... Failed: ntfy -l DEBUG done echo
INFO: Starting new HTTPS connection (1): api.pushbullet.com
ERROR: Failed to send notification using pushbullet
Traceback (most recent call last):
File "/home/minhoryang/bin/ntfy/ntfy/__init__.py", line 65, in notify
**backend_config)
File "/home/minhoryang/bin/ntfy/ntfy/backends/pushbullet.py", line 34, in notify
headers=headers)
File "/home/minhoryang/bin/ntfy/requests/api.py", line 111, in post
return request('post', url, data=data, json=json, **kwargs)
File "/home/minhoryang/bin/ntfy/requests/api.py", line 57, in request
return session.request(method=method, url=url, **kwargs)
File "/home/minhoryang/bin/ntfy/requests/sessions.py", line 475, in request
resp = self.send(prep, **send_kwargs)
File "/home/minhoryang/bin/ntfy/requests/sessions.py", line 585, in send
r = adapter.send(request, **kwargs)
File "/home/minhoryang/bin/ntfy/requests/adapters.py", line 477, in send
raise SSLError(e, request=request)
SSLError: [Errno 20] Not a directory FYI, Bypassed: REQUESTS_CA_BUNDLE=ntfy.git/build/zipapp/requests/cacert.pem ntfy done echo and sudo pip install certifi
ntfy done echo also worked by http://docs.python-requests.org/en/master/user/advanced/#ca-certificates |
Where my
secret_token
is replaced with my actual user token.Thoughts?
The text was updated successfully, but these errors were encountered: