Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leetcode command keeps contacting host: leetcode.com:443 #107

Open
Ynjxsjmh opened this issue Aug 19, 2022 · 1 comment
Open

leetcode command keeps contacting host: leetcode.com:443 #107

Ynjxsjmh opened this issue Aug 19, 2022 · 1 comment

Comments

@Ynjxsjmh
Copy link

Ynjxsjmh commented Aug 19, 2022

The first time to run leetcode command it successfully install some packages but after that when I run it again, it is stuck at contacting host.

When I eval leetcode--login-p, the output is like following

[url-cookie "LEETCODE_SESSION" "eyw" "Fri Sep 02 19:18:10 2022 GMT" "/" ".leetcode.com" t]

When I try leetcode-daily it returns rendered page, both leetcode-try and leetcode-submit work.

M-x leetcode-toggle-debug then M-x leetcode and wait some time, M-x leetcode--log-open-log opens the buffer *leetcode-log*, the content is like following

03:28:56 [DEBUG] set user: xx, solved xx in 2378 problems
03:28:56 [DEBUG] frontend_question_id: 2378, question_id: 2517, title: Choose Edges to Maximize Score in a Tree
03:28:56 [DEBUG] frontend_question_id: 2377, question_id: 2516, title: Sort the Olympic Table
03:28:56 [DEBUG] frontend_question_id: 2372, question_id: 2515, title: Calculate the Influence of Each Salesperson
03:28:56 [DEBUG] frontend_question_id: 2371, question_id: 2506, title: Minimize Maximum Value in a Grid
03:28:56 [DEBUG] frontend_question_id: 2362, question_id: 2501, title: Generate the Invoice
03:28:56 [DEBUG] frontend_question_id: 2361, question_id: 2500, title: Minimum Costs Using the Train Line
03:28:56 [DEBUG] frontend_question_id: 2356, question_id: 2495, title: Number of Unique Subjects Taught by Each Teacher
03:28:56 [DEBUG] frontend_question_id: 2355, question_id: 2490, title: Maximum Number of Books You Can Take
....
03:28:56 [DEBUG] frontend_question_id: 3, question_id: 3, title: Longest Substring Without Repeating Characters
03:28:56 [DEBUG] frontend_question_id: 2, question_id: 2, title: Add Two Numbers
03:28:56 [DEBUG] frontend_question_id: 1, question_id: 1, title: Two Sum
@mhdna
Copy link

mhdna commented Jan 23, 2023

@Ynjxsjmh About a month ago, I've had the same exact problem on Emacs 28. Weirdly enough, after compiling Emacs 29 from source, the package worked just fine.
A couple days ago I've retested it again on 28 and fortunately it worked as expected!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants