facebook

Can’t authorize github copilot. [Resolved]

  1. Copilot4Eclipse – GitHub Copilot on Eclipse
  2.  > 
  3. General Discussion
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #699721 Reply

    Thohoa
    Participant

    Hello, thank you for the plugin.

    I’m facing an issue, when I want to authorize the plugin to connect to my github account, once i’m on the screen saying everything is done on github, the plugin is still waiting for the authorization and then, it times-out.

    I get those errors :

    java.util.concurrent.TimeoutException
    	at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1960)
    	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2095)
    	at com.genuitec.copilot4eclipse.handlers.SignInHandler.execute(Unknown Source)
    	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
    	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
    	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:300)
    	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
    	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
    	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
    	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
    	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:485)
    	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
    	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:389)
    	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:366)
    	at com.genuitec.copilot4eclipse.ui.StatusBarMenuManager$6.widgetSelected(Unknown Source)
    	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
    	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4274)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
    	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
    	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
    	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:645)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)
    	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:552)
    	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:171)
    	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
    	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:651)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:588)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1459)
    
    java.lang.RuntimeException: Sign in handler failed
    	at com.genuitec.copilot4eclipse.ui.StatusBarMenuManager$6.widgetSelected(Unknown Source)
    	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
    	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4274)
    	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
    	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
    	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)
    	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
    	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
    	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:645)
    	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:342)
    	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:552)
    	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:171)
    	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
    	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:651)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:588)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1459)
    Caused by: org.eclipse.core.commands.ExecutionException: Error executing 'com.genuitec.copilot4eclipse.commands.signInCommand': java.lang.NullPointerException: Cannot read field "status" because "<local4>" is null
    	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:170)
    	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
    	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:485)
    	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
    	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:389)
    	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:366)
    	... 28 more
    Caused by: org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException: Cannot read field "status" because "<local4>" is null
    	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68)
    	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:300)
    	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
    	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
    	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
    	... 33 more
    Caused by: java.lang.NullPointerException: Cannot read field "status" because "<local4>" is null
    	at com.genuitec.copilot4eclipse.handlers.SignInHandler.execute(Unknown Source)
    	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
    	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
    	... 37 more
    

    And the following message when I try to connect again :
    signInitiate failed with message : self-signed certificate in certificate chain.

    I’m trying it from my work PC but I’m not going through a proxy, I’m using my phone 5g.

    EDIT : I’m using a business subscription.

    • This topic was modified 9 months ago by Thohoa.
    • This topic was modified 8 months, 3 weeks ago by wayne.
    #699729 Reply

    wayne
    Moderator

    Thanks for sharing this issue.
    We are looking into it now.
    Wayne

    #699789 Reply

    patelsiddharthr
    Participant

    Thank you Wayne for looking into the issue, just to add I too am facing same issue, similar situation for me from PC/Firewall/business license for Github Copilot.

    #699796 Reply

    wayne
    Moderator

    We just released the 1.0.0 version of Copilot4Eclipse that I’m hoping resolves the network issues you are experiencing.
    Details here
    Please share if update resolves your network issues.

    #699811 Reply

    patelsiddharthr
    Participant

    Yes, update does resolve the issue. Thank you.

    #699813 Reply

    wayne
    Moderator

    Great! Thx for the confirmation.
    Marking this thread resolved.

    #701804 Reply

    akbar1209
    Participant

    Hi, I’m facing the same issue and it’s with the latest version of eclipse (2024-06).
    I’m trying to use it in a official setup and its likely to do something with the network policy, could you please let us know which ip’s\ports are needed to be whitelisted for the authorization to work smoothly. Currently GitHub authorization works fine but on eclipse side it gets timed out.

    #701807 Reply

    wayne
    Moderator

    @akbar1209
    Check out the firewall settings here https://www.genuitec.com/products/copilot4eclipse/docs/resources/technotes/firewall-settings.
    Let us know if these settings work for you.

    Wayne
    Copilot4Eclipse Team

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Can’t authorize github copilot. [Resolved]

You must be logged in to post in the forum log in