Comments (8)
The same issue has been reported to offlineimap :
OfflineIMAP/offlineimap#655
from gmail-oauth2-tools.
OpenSSL EOF detection behavior is being reverted in 1.1.1, so I expect this to start working once that is released. However, the change to EOF detection is being kept on for OpenSSL release 3.0. This should give the maintainers of this application time to fix the issue before OpenSSL 3 is released. I suggest this issue not be closed until this API is fixed to work with the new EOF detection code.
Revert the change of EOF detection while reading in libssl to avoid
regressions in applications depending on the current way of reporting
the EOF. As the existing method is not fully accurate the change to
reporting the EOF via SSL_ERROR_SSL is kept on the current development
branch and will be present in the 3.0 release.
[Tomas Mraz]
[Emphasis mine]
from gmail-oauth2-tools.
@alexDarcy Hi, I've got the identical problem. Doesn't seem like this repo is maintained by anybody though.
After some digging I found out that it may be related to openssl version: http://marine.copernicus.eu/faq/what-are-the-motu-and-python-requirements/ (error identical).
On my system both versions are installed:
pacman -Ss openssl
core/openssl 1.1.1.e-1 [installed]
core/openssl-1.0 1.0.2.u-1 [installed]
Unfortunately newest one is required by a lot of other important packages so removing it is not an option.
Right now I didn't found any easy solution to get python2 use older version of openssl. Playing around with openssl
options didn't give any result for now:
sslcontext=ssl.create_default_context()
sslcontext.options |= ssl.OP_NO_SSLv3
response = urllib.urlopen(request_url, urllib.urlencode(params), context=sslcontext).read()
According to docs, newer openssl support was added relatively recently:
Changed in version 2.7.13: Updated to support linking with OpenSSL 1.1.0
So, probably I will try to downgrade python2 as last resort. Also, rebuilding may be an option: https://stackoverflow.com/questions/5937337/building-python-with-ssl-support-in-non-standard-location.
Let me know if you find any solution.
from gmail-oauth2-tools.
rolling back openssl is risky and shouldn't be recommended. Who is the maintainer of this repo? Google?
from gmail-oauth2-tools.
from gmail-oauth2-tools.
@JonnyMako Thanks. I will wait for 1.1.1f and then upgrade openssl
.
from gmail-oauth2-tools.
After upgrade to 1.1.1f issue is gone.
from gmail-oauth2-tools.
I can confirm this, closing the issue.
from gmail-oauth2-tools.
Related Issues (20)
- 401 errors HOT 1
- oauth2.py: Bad Request error, invalid grant HOT 2
- oauth2.py stopped to work - urllib.py, httplib.py and socket.py issues HOT 8
- sendgmail: use the GMail API instead of SMTP HOT 22
- API probably doesn't send "refresh_token"s anymore. HOT 1
- .
- B
- Yahoo
- Update sendgmail's instructions HOT 1
- GMail refresh token retrieval no longer working HOT 4
- oauth2.py uses outdated urls HOT 1
- Unclear how to register an application, establish a client-id HOT 1
- Gmail
- Gmail
- Python: SyntaxError: invalid syntax - Generate a Token HOT 1
- Python3 version? HOT 3
- How to Authenticator bypass or disable for google account HOT 1
- sendgmail: refresh token hack no longer works HOT 1
- SMTP with XOAUTH2 HOT 9
- sendgmail: consider using localhost to get the oauth2 token HOT 2
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 gmail-oauth2-tools.