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.

Uncaught exception: Header must provide a Content-Length property.

See original GitHub issue

When opening a Java file for editing I get the error:

[coc.nvim]: Uncaught exception: Header must provide a Content-Length property.

I only get this error when editing Java files, not with CPP files in conjunction with coc.clangd. As a result I get an infinite attempt of trying to start jdt what never succeeds.

Installed extensions:

  • coc-snippets 2.2.10
  • coc-java 1.5.3
  • coc-cmake 0.0.3
  • coc-clangd 0.6.0

Using nvim v0.4.4 or VIM 8.2 1-1897 on ubuntu 18

I have seen others report the same issue with different extensions but other than updating the corresponding extension I haven’t found any suitable solution. I also don’t know what exactly is causing it. Any help appreciated.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
JuanManuelRBcommented, Feb 26, 2021

I was able to solve this same problem by uninstalling coc-java, deleting the folder ~/.config/coc/extensions/coc-java-data/, and reinstalling coc-java again

4reactions
fidelskicommented, Dec 10, 2020

Sorry for bothering, after a complete wipe of all vim plugins and all coc extensions, including a removal of all files within .config/coc and a reinstall of everything, the error is gone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

neoclide/coc.nvim - Gitter
"Uncaught exception: Error: Header must provide a Content-Length property." the exact exception for reference, and the output from the language server ...
Read more >
lsp 2021-08-05 | Slack Archive
Uncaught exception : Header must provide a Content-Length property. Uncaught exception: Header must provide a Content-Length property. Uncaught exception: ...
Read more >
Header must contain a Content-Length property - Bountysource
Uncaught exception : Header must contain a Content-Length property.
Read more >
How To Fix the “411 Length Required” Error (4 Methods) - Kinsta
Fortunately, you can easily fix the “411 Length Required” error. This HTTP status code happens when the server requires a content-length header, ...
Read more >
Amazon aws s3 content header - Stack Overflow
This error is due to you are not passing any image or object for put. pass a object too. I also faced similar...
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