-
Notifications
You must be signed in to change notification settings - Fork 9
JSONDecodeError #19
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
Comments
Hi @garncarz, thank you for using leetcode-export! I'm not able to reproduce the issue you're facing. Could you please check that you're pasting the leetcode cookies correctly? You can get them from the network tab in the dev tools. Everything under ![]() If that doesn't work, could you share the debug logs? You can get them by running |
Thanks for such quick reply! In the previous versions, I had to manually pick just Maybe this error is caused because it gets HTML instead of JSON?
|
Interesting, https://leetcode.com/api/submissions/?offset=0&limit=1 gives me JSON when accessing that in Chrome. |
Looks like it's a rate limit or an attempt to mess with tools like leetcode-export. I'll make some changes to fix that, retrying that HTTP request should work. |
I also encoutered the same problem, the returned body seems like the Cloudflare Captcha. <!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="robots" content="noindex,nofollow"><meta name="viewport" content="width=device-width,initial-scale=1"> I changed my IP address using a VPN, finally the script works fine. |
@WangYihang Thank you for sharing! When I'll have time I'll update the logic to retry the request a couple of times in case it's unsuccessful |
Hello, thanks for the great tool! 🙂 Just recently it stopped working, I tried upgrading to version 2.4.0, but maybe LC API has changed?
The text was updated successfully, but these errors were encountered: