Trying to remove 502 error