Added logging in case of 502 bad gateway so you can check if it occured.