When your API calls return an HTTP code 403 (forbidden), with sub status 502, your API call has exceeded rate limits. This means that you are calling the API too many times within a certain period of time and are therefore being denied. Reducing the number of API calls you make per second will resolve the issue.