Code Monkey home page Code Monkey logo

Comments (8)

apraga avatar apraga commented on May 21, 2024 1

The same issue has been reported to offlineimap :
OfflineIMAP/offlineimap#655

from gmail-oauth2-tools.

J0nnyMak0 avatar J0nnyMak0 commented on May 21, 2024 1

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.

openssl/openssl@6611672

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.

trsdln avatar trsdln commented on May 21, 2024

@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.

J0nnyMak0 avatar J0nnyMak0 commented on May 21, 2024

rolling back openssl is risky and shouldn't be recommended. Who is the maintainer of this repo? Google?

from gmail-oauth2-tools.

J0nnyMak0 avatar J0nnyMak0 commented on May 21, 2024

openssl/openssl#11381

from gmail-oauth2-tools.

trsdln avatar trsdln commented on May 21, 2024

@JonnyMako Thanks. I will wait for 1.1.1f and then upgrade openssl.

from gmail-oauth2-tools.

trsdln avatar trsdln commented on May 21, 2024

After upgrade to 1.1.1f issue is gone.

from gmail-oauth2-tools.

apraga avatar apraga commented on May 21, 2024

I can confirm this, closing the issue.

from gmail-oauth2-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.