Hi there,
I know this is an old post, but I've just recently encountered a similar issue after months of no issues successfully using the api.
We have a scheduled job that runs early in the morning (around 4:30 am UK time) and downloads a large campaign report.
Intermittently it will fail, e.g. it worked for two days, then failed on the third (with no changes on our side in between as it was the weekend).
The error returned is "An error has occurred: Unknown SSL protocol error in connection to
accounts.google.com:443". If I run the same job during the day it always seems to work.
I followed the stackoverflow link above, but wasn't entirely sure how to troubleshoot the issue with the information there? I tried adding curl_setopt($ch, CURLOPT_SSLVERSION, 3); // Force SSLv3 to fix Unknown SSL Protocol error, to the report utils file in the client libraries, but the issue persisted.
Environment:
OS: Windows Server
PHP Client Library: 6.2.0
API Version: v201506
Could it be something to do with the time of day the job is running? Any ideas on how to troubleshoot, or perhaps a way to get the client libraries to retry if the above error happens?
Thanks,
Will