Your comments

I have same issue, same error messages and same "502 Bad gateway".

I’m accessing from Canada without proxy, using Gradle 2.4(because other versions didn’t work).