walle89 / SwedbankJson

Unofficial API client for the Swedbank's and Sparbankerna's mobile apps in Sweden.
MIT License
75 stars 14 forks source link

cURL error 35: OpenSSL SSL_connect: Connection reset by peer #52

Closed CirruZZ closed 1 month ago

CirruZZ commented 2 months ago

Juste received this error trying to initiate an authentication process. Nothing (code) have change from mys side, ie, the code I'm using have worked a week ago.

cURL error 35: OpenSSL SSL_connect: Connection reset by peer in connection to auth.api.swedbank.se:443 (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)

walle89 commented 2 months ago

Hi,

I tried myself now and it works for me.

These kind of errors are in most cases network or environment related.

My best guess are these postnasal issues:

In theory, even if I haven't observed this behavior from Swedbank, it's possible you could got this because the IP is blocked (temporarily) by Swedbank due to rate limiting or similar.

CirruZZ commented 1 month ago

FYI. I have been testing for a while now, only was a few days I had the problem. It seemed to be something with the generation/retrieval of the QR code, but it was intermittent. After a few days, everything worked as it should, and the problem was gone. Nothing changed on my side. Can't tell what the issue was.