Forums

SSLError

Hello fine sirs,

I received a notification from a monitoring tool that my site was down and when I tried to visit the site it took a long time to load but eventually did so. I looked at the error log and there are a whole lot of the below error. Not sure if this is just a red herring or not but I haven't seen this before.

I looked at some Stack Overflow threads and there are some posts in relation to requests. I am don't think I am explicitly using requests anywhere. Any thoughts on where this could be coming from? Also I cant find this in Sentry anywhere... is that strange?

I don't recognise /api/1298301/store/ which looks like the URL that causes the error

Pretty-much any site that is on the net for any length of time is going to get probed for vulnerabilities. Thankfully, the vast majority of probes are looking for vulnerabilities in out-of-date WordPress and PHP sites, so you don't need to worry about them.

As to the SSL errors, I can think of 2 possibilities:

dj-stripe is making requests to Stripe that are failing

Stripe is making webhook calls to your site and those are failing.

I think 1 is the most likely, so you should start your investigations there.

Okay thanks glenn... to be honest I am not really sure where to start trouble shooting failing requests from dj-stripe but will have a look around. Logs look fine for the webhooks... only 3 errrors over the past month

It's a bit odd that the errors aren't being presented alongside stack traces, which would help you track down exactly where they're happening in your code. Perhaps you could add some error logging of your own? If you put something like this in your code:

....then you'll get timestamped messages in the error log. If you put those before any after your calls to dj-stripe functions, that might help you work out which ones are causing those error messages.