Bug 349332 - [github] Connection to https://api.github.com refused
Summary: [github] Connection to https://api.github.com refused
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 1.0.0   Edit
Assignee: Kevin Sawicki CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2011-06-14 11:06 EDT by Jean Couillaud CLA
Modified: 2011-06-17 10:51 EDT (History)
0 users

See Also:


Attachments
screenshot (30.28 KB, image/png)
2011-06-14 11:07 EDT, Jean Couillaud CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean Couillaud CLA 2011-06-14 11:06:33 EDT
Build Identifier: M20110210-1200

I use a proxy but it works when connecting to anything else (it worked to install the connector from marketplace, it works for push operations on github, etc.)
The ui hangs for about 10-20 seconds before showing the "Connection to https://api.github.com refused" message.

I use a url of the form http://github.com/user/project as required and I use my standard github credentials as shown in the screenshot

I have tried to access the api with a browser and https://api.github.com/repos/user/project/issues works like a charm (I have an issue in github and the api request shows it).
I use https to connect to github for pull/push operations so, I don't think the issue is related to ssl either ...

I have nothing in the eclipse log ...

Reproducible: Always

Steps to Reproduce:
1. Add Task Repository in Task Repositories view
2. Select "Github issues" as connector
3. Configure as is intended
Comment 1 Jean Couillaud CLA 2011-06-14 11:07:27 EDT
Created attachment 197959 [details]
screenshot
Comment 2 Kevin Sawicki CLA 2011-06-14 12:39:37 EDT
Fix merged via: http://egit.eclipse.org/r/#change,3733

Please respond if you still see issues, I tested using a local squid http proxy server and using 
the Manual and Native proxy settings in the General > Network Connections preference page
Comment 3 Jean Couillaud CLA 2011-06-14 12:48:59 EDT
(In reply to comment #2)
> Fix merged via: http://egit.eclipse.org/r/#change,3733
> 
> Please respond if you still see issues, I tested using a local squid http proxy
> server and using 
> the Manual and Native proxy settings in the General > Network Connections
> preference page

Unfortunately, even if I am a seasoned developer. I did not code eclipse plugins recently and I do not know how to get the update. Would you be kind enough to provide me with some intell so that I can do it or tell me when it should be visible for update within eclipse (helios) or a nightly build of the plugin available on a "hidden update site".

Did you find any obvious proxy mismanagement in the code that should most obviously explain the issue ?
Comment 4 Kevin Sawicki CLA 2011-06-14 13:01:17 EDT
(In reply to comment #3)
> Did you find any obvious proxy mismanagement in the code that should most
> obviously explain the issue ?

The HTTP library used was recently upgraded and I did not realize explicit proxy management was required.
The fix was simple and modeled after the examples in the library documentation.

The update should be available soon, there is a hudson instance that builds and generates update sites,
I will post back a link when it is available.
Comment 5 Jean Couillaud CLA 2011-06-15 03:23:27 EDT
Thx, I'll wait for the update then.
Besides, why isn't there any target attribute for the issue ?
Comment 6 Kevin Sawicki CLA 2011-06-16 11:53:35 EDT
The update with the fix is available from the update site here: https://hudson.eclipse.org/hudson/job/egit-github/152/artifact/org.eclipse.mylyn.github-site/target/repository/
Comment 7 Jean Couillaud CLA 2011-06-17 05:44:32 EDT
It seems like I'm missing something. When trying to update, I got the following error

Cannot complete the install because one or more required items could not be found.
  Software being installed: Eclipse EGit Mylyn GitHub Feature 1.0.0.201106161141 (org.eclipse.mylyn.github.feature.feature.group 1.0.0.201106161141)
  Missing requirement: Mylyn GitHub Connector UI 1.0.0.201106161141 (org.eclipse.mylyn.github.ui 1.0.0.201106161141) requires 'bundle org.eclipse.egit.core [1.0.0,1.1.0)' but it could not be found
  Cannot satisfy dependency:
    From: Eclipse EGit Mylyn GitHub Feature 1.0.0.201106161141 (org.eclipse.mylyn.github.feature.feature.group 1.0.0.201106161141)
    To: org.eclipse.mylyn.github.ui [1.0.0.201106161141]

I updated to the last egit core build (found on the hudson).
Extract of my configuration details:

org.eclipse.egit (1.1.0.201106170412) "Git Team Provider" [Starting]
org.eclipse.egit.core (1.1.0.201106170412) "Git Team Provider Core" [Active]
org.eclipse.egit.doc (1.1.0.201106170412) "Git Team Provider Documentation" [Resolved]
org.eclipse.egit.github.core (1.0.0.201106091627) "EGit GitHub API Core" [Resolved]
org.eclipse.egit.mylyn.ui (1.1.0.201106170412) "EGit Mylyn UI" [Starting]
org.eclipse.egit.ui (1.1.0.201106170412) "Git Team Provider UI" [Active]

So, what am I missing. Shouldn't "[1.0.0,1.1.0)" match "1.1.0.201106170412" ?
Comment 8 Kevin Sawicki CLA 2011-06-17 10:51:29 EDT
[1.0.0,1.1.0) means greater or equals to 1.0.0 and less than 1.1.0, the ) is exclusive.  So you would need a 1.0 build of eGit.