Python SSL connection “EOF occurred in violation of protocol”

前端 未结 3 1770
春和景丽
春和景丽 2020-12-29 05:01

I\'m using Django Celery task to connect to Facebook Graph API with requests lib using Gevent. Issue I\'m constantly running at is that every now and then I get EOF occurred

3条回答
  •  梦毁少年i
    2020-12-29 05:47

    Using the forced TLSv1 fix as suggested by J.F Sebastian fixed all the issues I was facing.

    Hints for future questions regarding:

    • DNSError exception - upgrading Gevent from 0.13.X to 1.0rc fixes this issue

    • SSL issues - look at fix in link provided by J.F Sebastian

提交回复
热议问题