sns-sdks / python-facebook

A simple Python wrapper for facebook graph api :sparkles: :cake: :sparkles: .
https://sns-sdks.github.io/python-facebook/
322 stars 84 forks source link

Connection reset by peer #249

Closed iamMHZ closed 8 months ago

iamMHZ commented 8 months ago

I am using the following simple code:

from pyfacebook import GraphAPI
api = GraphAPI(app_id=APP_ID, app_secret=APP_SECRET, application_only_auth=True)
api.get_object(OBJ_ID)

And it raises the following error:

self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

The same exact request works just fine in Postman.

MerleLiuKun commented 8 months ago

This error may caused by openssl library. you can check this. :)

iamMHZ commented 8 months ago

Thanks.