Unable to get user info

I have configured spinnaker (Which is installed in China) with github oauth2 application , and when it tries to fetch user info, i get the following error:

o.s.b.a.s.o.r.UserInfoTokenServices      : Could not fetch user details: class org.springframework.web.client.ResourceAccessException, I/O error on GET request for "https://api.github.com/user": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)

I can confirm that clientId and client secret are correct.

Thanks,
Raghu

Hi Raghu!

Thanks so much for posting about your experience in authoring an OAuth app. Is the project hosted on GitHub, by chance? I’d be very curious to see the connect string in the app itself.

If it’s not a public project, would you be able to provide a bit more detail?

So far, I’ve just been searching Google with nested exception is java.net.ConnectException: Connection refused which does return quite a few interesting things that might be useful. Hard to recommend possible suggestions without seeing the code, first.