Skip to content

fix: provide an option for not showing the expired window when gettin… #112

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

Closed
wants to merge 2 commits into from

Conversation

fangjunzhou
Copy link

…g 401/403

This is a suggested temprary fix for http 401/403 error from leetcode.

I found that the current leetcode api only reject some of the requests. It's often the case that leetcode returns 403 for some requests but still accept some other requests after that. Treating all the 403 requests as expired just made the entire plugin unusable.

I added and show_menu_when_expire option to the config template. When setting this flag to false, the system will only pop an error instead of call the cmd.menu() and cmd.cookie_prompt() to send the user all the way back to the main menu.

image

I suspect that most of the 403 we got recently is because of the change of leetcode api. I think reseving this option is also important for leetcode.nvim to handle future api change. Otherwise, a simple api change may disbale the entire plugin.

fangjunzhou and others added 2 commits June 27, 2024 02:03
@kawre
Copy link
Owner

kawre commented Oct 26, 2024

closed with #135

@kawre kawre closed this Oct 26, 2024
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

Successfully merging this pull request may close these issues.

2 participants