question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ERROR] http error [code=400]

See original GitHub issue

I install the leetcode plugin from vscode and login successfully with leetcode-cn account, but it fails downloading contents.

- Downloading problems
- Downloading questions titles
[ERROR] http error [code=400]

I like this plugin. It really improves leetcode experience. But it doesn’t work now. Can you help me?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:26 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
yihong0618commented, Dec 7, 2019

Hi @ALL @jdneo I try to locate this bug. And I found that leetcode-cn just change their payload in here. image I try to change it to new payload, found it worked, and I need more time for debug it. image But today I’m a little busy and I will find someway maybe tomorrow night~

change code at line 117 to following: body.data.translations.forEach(function(x) { titles[x.questionId] = x.title; });

Yes sorry my laptop is power off …

1reaction
yihong0618commented, Dec 7, 2019

Hi @all @jdneo I try to locate this bug. And I found that leetcode-cn just change their payload in here. image I try to change it to new payload, found it worked, and I need more time for debug it. image But today I’m a little busy and I will find someway maybe tomorrow night~

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix a 400 Bad Request Error: 8 Easy Methods
The 400 bad request error is an HTTP status code that describes an error caused by an invalid request. Thus, the server can't...
Read more >
How to Fix the 400 Bad Request Error - Lifewire
The 400 Bad Request error is an HTTP status code that means that the request you sent to the website server, often something...
Read more >
How to Fix a 400 Bad Request Error (Causes and Fixes) - Kinsta
1. URL String Syntax Error ... The HTTP error 400 can occur due to incorrectly typed URL, malformed syntax, or a URL that...
Read more >
What is HTTP error 400 and how do you fix it? - IT PRO
This error can indicate that a request has not been met successfully, or that the remote server that received the request was unable...
Read more >
Status Code 400 (Bad Request) Explained & How to fix it - Ryte
A HyperText Transfer Protocol Bad Request 400 indicates a client error. When the client sends an invalid request to the server, the server...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found