Wrong GitHub API is called from DVCS Connector.

Hola Guys!

Im getting the following exception with the DVCS Connector 1.2.2 on JIRA 5.1.2, when trying to add a github hosted organization.

The strange thing is that the connector seems to request an API v1 endpoint on github.com which doesn't exist anymore. But iwas under the impression the API calls have been changed to GitHub's API v3 in the dvcs connector v0.3. Is there a property or something which I have to change in order to get the connection to github working?

2012-11-22 10:21:18,280 http-8080-7 DEBUG jiraadmin 620x2880x2 s9glpx 141.66.19.31,141.66.17.31,127.0.0.1 /rest/bitbucket/1.0/accountInfo [bitbucket.clientlibrary.request.BaseRemoteRequestor] Failed to execute request: sun.net.www.protocol.https.DelegateHttpsURLConnection:https://github.com/api/1.0/users/escidoc

java.net.ConnectException: Connection timed out

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)

at java.net.Socket.connect(Socket.java:546)

at java.net.Socket.connect(Socket.java:495)

at sun.net.NetworkClient.doConnect(NetworkClient.java:174)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)

at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:289)

at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:346)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)

at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:397)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)

at com.atlassian.jira.plugins.dvcs.spi.bitbucket.clientlibrary.request.BaseRemoteRequestor.checkAndCreateRemoteResponse(BaseRemoteRequestor.java:136)

at com.atlassian.jira.plugins.dvcs.spi.bitbucket.clientlibrary.request.BaseRemoteRequestor.requestWithoutPayload(BaseRemoteRequestor.java:123)

at com.atlassian.jira.plugins.dvcs.spi.bitbucket.clientlibrary.request.BaseRemoteRequestor.get(BaseRemoteRequestor.java:45)

at com.atlassian.jira.plugins.dvcs.spi.bitbucket.clientlibrary.restpoints.AccountRemoteRestpoint.getUser(AccountRemoteRestpoint.java:28)

at com.atlassian.jira.plugins.dvcs.spi.bitbucket.BitbucketCommunicator.getAccountInfo(BitbucketCommunicator.java:126)

at com.atlassian.jira.plugins.dvcs.service.remote.CachingCommunicator.getAccountInfo(CachingCommunicator.java:173)

at com.atlassian.jira.plugins.dvcs.service.remote.DvcsCommunicatorProvider.getAccountInfo(DvcsCommunicatorProvider.java:30)

at com.atlassian.jira.plugins.dvcs.service.OrganizationServiceImpl.getAccountInfo(OrganizationServiceImpl.java:37)

at com.atlassian.jira.plugins.dvcs.rest.RootResource.accountInfo(RootResource.java:164)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)

[...]

Thanks for you help...
Frank

1 answer

Hello,

This case needs a more specific investigation. Please raise a support ticket at https://support.atlassian.com.

Lucas Lima

Atlassian Support

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

702 views 6 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you