Getting 502 Bad Gateway error


What could be the possible reason for getting this error several times in a day while getting data from mysql db???

Basically a temporary message that will appear.
Nothing for you to do apart from wait it out or upgrade.
Sorry.

If I upgrade to premium then this error will not appear??

Yeah the premium service doesn’t have limits so this issue won’t be faced there.
You don’t have to upgrade though you can just wait it out on the free plan when it happens.