Instead of redirecting API calls from HTTP to HTTPS, make the failure visible. Unfortunately, many well-known API providers don’t currently do so.

Source: Your API Shouldn’t Redirect HTTP to HTTPS