Page 1 of 1

Getting sporadic cloudfront 502 errors

Posted: Sat Jan 22, 2022 11:55 pm
by tehjrow
When trying to access this url (this one is just an example, it happens pretty much anywhere in the api)
https://api.opensubtitles.com/api/v1/su ... 65-d3g.mkv

I randomly either get a 200 success or a 502 failure. The failure appears to be a cloudfront response. I just paid for VIP because I thought I was hitting a rate limit, but it appears i'm just hitting a random cloudfront 502. It took a while to figure out what was causing Bazarr to break, but it's because it doesn't expect a 502 response and doesn't know how to handle it.

Any idea why I would get sporadic 502 errors?

Failure
Image

Success
Image

Re: Getting sporadic cloudfront 502 errors

Posted: Thu Jan 27, 2022 2:09 am
by tzashi
I'm also getting these errors they seem to be completely random

Re: Getting sporadic cloudfront 502 errors

Posted: Thu Jan 27, 2022 10:06 am
by oss
We have to check what causes this, it is quite hard to debug specially, when in game is cloudflare, firewall, kong api gateway, firewall and then couple of application servers.

Bazarr stop works, when it receives 5xx error ? That should be reported to Bazarr guys