hackjutsu / Lepton

💻 Democratizing Snippet Management (macOS/Win/Linux)
https://hackjutsu.com/Lepton
MIT License
10.13k stars 475 forks source link

lepton login failure #454

Closed woshichuanqilz closed 3 years ago

woshichuanqilz commented 4 years ago

The more we know about your system and use case, the more easily and likely we can help.

Environment info

Description of the problem / feature request / question:

lepton login failure

After I enter my account and password show this loading page image

3 ~ 4 secs later back to this page image

Seems not my network issue cause I use cacher login successfully. And my browswer can access gist.

So why this issue came out?

If possible, provide a sample gist or screenshot:

If possible, provide the log files

For Lepton after v1.9.0, the path of the log file can be found at Command/Ctrl + ,

hackjutsu commented 4 years ago

Seems not my network issue cause I use cacher login successfully.

Not sure why this is related given they use different services.

And my browswer can access gist.

Gist accessing API is different from the authentication API.

Can you share more context like the log? Thanks.

funway commented 4 years ago

2020-07-19T11:31:42.173Z - error: The request has failed: {"name":"RequestError","message":"Error: connect ECONNREFUSED 13.250.168.23:443","cause":{"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"13.250.168.23","port":443},"error":{"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"13.250.168.23","port":443},"options":{"uri":"https://api.github.com/user","agent":null,"headers":{"User-Agent":"hackjutsu-lepton-app","Authorization":"token 4c57****"},"method":"GET","json":true,"timeout":20000,"simple":true,"resolveWithFullResponse":false,"transform2xxOnly":false}} 2020-07-19T11:31:42.174Z - info: [Dispatch] updateUserSession INACTIVE

It looks like the connection to Lepton's backend server (13.250.168.23) has been blocked by GFW. So I switched my system proxy to global mode, and it works! 😊

Hope Lepton could have a preference for proxy settings in the future. Thanks.

leedorian commented 3 years ago

2020-07-19T11:31:42.173Z - error: The request has failed: {"name":"RequestError","message":"Error: connect ECONNREFUSED 13.250.168.23:443","cause":{"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"13.250.168.23","port":443},"error":{"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"13.250.168.23","port":443},"options":{"uri":"https://api.github.com/user","agent":null,"headers":{"User-Agent":"hackjutsu-lepton-app","Authorization":"token 4c57****"},"method":"GET","json":true,"timeout":20000,"simple":true,"resolveWithFullResponse":false,"transform2xxOnly":false}} 2020-07-19T11:31:42.174Z - info: [Dispatch] updateUserSession INACTIVE

It looks like the connection to Lepton's backend server (13.250.168.23) has been blocked by GFW. So I switched my system proxy to global mode, and it works! 😊

Hope Lepton could have a preference for proxy settings in the future. Thanks.

Yes, same issue here, F**K GFW, a proxy setting would be better.

tsaeilae commented 3 years ago

I have the same issue:

debug: The gist number on this page is undefined debug: The gist number on this page is undefined error: The request has failed: TypeError: Cannot convert undefined or null to object debug: -----> Failure with {} error: The request has failed: {} info: [Dispatch] updateUserSession INACTIVE

hackjutsu commented 3 years ago

Yes, same issue here, F**K GFW, a proxy setting would be better.

🤔

MrCoder commented 3 years ago

I have also come across this issue. I do not think it is a GFW issue. I am in Melbourne. OS: Mac Big Sur (Mac Mini M1) Node: 14