Login fails with ECONNRESET error
The more we know about your system and use case, the more easily and likely we can help.
Environment info
- OS: Win10
- App Version (
Command/Ctrl + ,):
Description of the problem / feature request / question:
I'm unable to log in on my work laptop both use or not use proxy; it just sits at the login progress bar.
If possible, provide a sample gist or screenshot:

If possible, provide the log files
2019-04-19T08:45:26.193Z - info:
----- Lepton v1.7.3 win32-----
2019-04-19T08:45:26.195Z - info: [conf] Looking for .leptonrc at C:\Users\anjiuzhen/.leptonrc 2019-04-19T08:45:26.195Z - info: [conf] The resolved configuration is ... 2019-04-19T08:45:26.196Z - info: "userPanel": {"hideProfilePhoto":false} 2019-04-19T08:45:26.196Z - info: "logger": {"level":"debug"} 2019-04-19T08:45:26.196Z - info: "proxy": {"enable":true,"address":"socks://127.0.0.1:1080"} 2019-04-19T08:45:26.196Z - info: "snippet": {"sorting":"updated_at","sortingReverse":true,"expanded":true,"newSnippetPrivate":false} 2019-04-19T08:45:26.196Z - info: "editor": {"tabSize":4} 2019-04-19T08:45:26.197Z - info: "enterprise": {"enable":false,"host":"github_enterprise_host","token":"token_with_gist_enabled","avatarUrl":"optional_avatar_url"} 2019-04-19T08:45:26.197Z - info: "type": "literal" 2019-04-19T08:45:26.279Z - info: Checking for update 2019-04-19T08:45:26.490Z - debug: -----> registering login-page-ready listener 2019-04-19T08:45:28.726Z - info: [.leptonrc] Use proxy socks://127.0.0.1:1080 2019-04-19T08:45:30.682Z - debug: -----> Inside getCachedUserInfo 2019-04-19T08:45:30.684Z - debug: -----> [false] cachedProfile is undefined 2019-04-19T08:45:30.686Z - debug: -----> [false] cachedToken is undefined 2019-04-19T08:45:30.701Z - debug: -----> Inside LoginPage componentWillMount with loggedInUserInfonull 2019-04-19T08:45:30.702Z - debug: -----> Registering listener for auto-login signal 2019-04-19T08:45:30.702Z - debug: -----> sending login-page-ready signal 2019-04-19T08:45:30.703Z - info: [signal] sending auto-login signal 2019-04-19T08:45:30.788Z - debug: -----> Received "auto-login" signal with loggedInUserInfo null 2019-04-19T08:45:31.777Z - info: Update for version 1.7.3 is not available (latest version: 1.7.3, downgrade is disallowed). 2019-04-19T08:45:31.778Z - debug: checkForUpdatesAndNotify called, downloadPromise is null 2019-04-19T08:45:43.291Z - debug: -----> Inside launchAuthWindow with token undefined 2019-04-19T08:45:43.316Z - debug: loading authUrl https://github.com/login/oauth/authorize?client_id=9e42611bb02db4547abf&scope=gist 2019-04-19T08:45:43.351Z - info: [Dispatch] updateAuthWindowStatus ON 2019-04-19T08:45:55.058Z - info: [Dispatch] updateAuthWindowStatus OFF 2019-04-19T08:45:55.067Z - info: [Dispatch] updateUserSession IN_PROGRESS 2019-04-19T08:45:55.074Z - debug: [REST] Exchanging authCode with access token 2019-04-19T08:46:40.120Z - error: Failed: {"code":"ECONNRESET"} 2019-04-19T08:49:44.445Z - info: The app window is closed
ECONNRESET... interesting, it looks like the TPC connection is dropped.
I'm experiencing the same thing in Windows and Mac.
My Logs:
2019-06-28T02:59:58.368Z - info:
----- Lepton v1.8.0 win32-----
2019-06-28T02:59:58.369Z - info: [conf] Looking for .leptonrc at C:\Users\lolim/.leptonrc
2019-06-28T02:59:58.369Z - info: [conf] The resolved configuration is ...
2019-06-28T02:59:58.369Z - info: "theme": "light"
2019-06-28T02:59:58.369Z - info: "userPanel": {"hideProfilePhoto":false}
2019-06-28T02:59:58.369Z - info: "logger": {"level":"debug"}
2019-06-28T02:59:58.369Z - info: "proxy": {"enable":false,"address":"socks://localhost:1080"}
2019-06-28T02:59:58.369Z - info: "snippet": {"sorting":"updated_at","sortingReverse":true,"expanded":true,"newSnippetPrivate":false}
2019-06-28T02:59:58.370Z - info: "editor": {"tabSize":4}
2019-06-28T02:59:58.370Z - info: "enterprise": {"enable":false,"host":"","token":"","avatarUrl":""}
2019-06-28T02:59:58.370Z - info: "type": "literal"
2019-06-28T02:59:58.440Z - info: Checking for update
2019-06-28T02:59:58.622Z - debug: -----> registering login-page-ready listener
2019-06-28T03:00:01.354Z - debug: -----> Inside getCachedUserInfo
2019-06-28T03:00:01.358Z - debug: -----> [false] cachedProfile is undefined
2019-06-28T03:00:01.361Z - debug: -----> [false] cachedToken is undefined
2019-06-28T03:00:01.378Z - debug: -----> Inside LoginPage componentWillMount with loggedInUserInfonull
2019-06-28T03:00:01.379Z - debug: -----> Registering listener for auto-login signal
2019-06-28T03:00:01.380Z - debug: -----> sending login-page-ready signal
2019-06-28T03:00:01.381Z - info: [signal] sending auto-login signal
2019-06-28T03:00:01.496Z - debug: -----> Received "auto-login" signal with loggedInUserInfo null
2019-06-28T03:00:04.463Z - debug: -----> Inside launchAuthWindow with token undefined
2019-06-28T03:00:04.509Z - debug: loading authUrl https://github.com/login/oauth/authorize?client_id=9e42611bb02db4547abf&scope=gist
2019-06-28T03:00:04.539Z - info: [Dispatch] updateAuthWindowStatus ON
2019-06-28T03:00:04.932Z - info: Update for version 1.8.0 is not available (latest version: 1.8.0, downgrade is disallowed).
2019-06-28T03:00:04.932Z - debug: checkForUpdatesAndNotify called, downloadPromise is null
2019-06-28T03:00:53.588Z - info: [Dispatch] updateAuthWindowStatus OFF
2019-06-28T03:00:53.602Z - info: [Dispatch] updateUserSession IN_PROGRESS
2019-06-28T03:00:53.614Z - debug: [REST] Exchanging authCode with access token
2019-06-28T03:00:53.927Z - error: Failed: {"code":"SELF_SIGNED_CERT_IN_CHAIN"}
I have the same problem on Win / Mac and Linux with the 1.8.0 version. Which information do you need for fixing the problem?
@hackjutsu , Hi, I get this error on,
error: Failed: {"code":"ECONNRESET"}
@hackjutsu How to resolve.Please help me
Note: I am using office Network so proxy is there. I create
.curlrcand set a proxy
I wish I know but unfortunately IDK how to reproduce and resolve the TCP drop issue ECONNRESET . Adding a help wanted tag to see if some one have any idea.
https://stackoverflow.com/a/17637900