pushshift / api

Pushshift API
1.29k stars 107 forks source link

Intermittent handshake error when requesting data from the Pushshift API (ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1129)) #111

Open Jhann024 opened 2 years ago

Jhann024 commented 2 years ago

I have been having an issue recently where I am occasionally having the following error when running my code which scrapes specific data from reddit:

ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1129)

Following this error, some other errors are raised however this is the root of the problem. The weird part is that this error happens seemingly at random, at times I will be able to request daily comment data for one or two months, other times it works for only a couple days before throwing this error.

I'm inclined to believed that it is an issue happening on the push shift API side and am hoping that someone else might have had a similar error and has found a workaround for it as given the intermittent nature of the issue, I've found it quite difficult to diagnose and solve independently.

Attached below is a picture of the full traceback.

Handshake Error