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

Spams logs with certificate parsing failures #352

Open
Ddystopia opened this issue Jan 4, 2025 · 2 comments
Open

Spams logs with certificate parsing failures #352

Ddystopia opened this issue Jan 4, 2025 · 2 comments

Comments

@Ddystopia
Copy link

Hello, this extension works reliably, but it spams lsp.log with warns like those. It really interferes with debugging real issues with other lsp plugins. Can something be done about it on copilog.lua side?

[WARN][2025-01-04 19:41:52] ...lsp/handlers.lua:625	"[certificates] Failed to parse certificate # ACCVRAIZ1\n Error: error:0480006C:PEM routines::no start line\n    at new X509Certificate (node:internal/crypto/x509:119:21)\n    at /home/ddystopia/.local/share/nvim/lazy/copilot.lua/copilot/lib/src/network/certificateReaders.ts:79:36\n    at Array.filter (<anonymous>)\n    at Cle.removeExpiredCertificates (/home/ddystopia/.local/share/nvim/lazy/copilot.lua/copilot/lib/src/network/certificateReaders.ts:77:32)\n    at Cle.getAllRootCAs (/home/ddystopia/.local/share/nvim/lazy/copilot.lua/copilot/lib/src/network/certificateReaders.ts:68:38)\n    at Rge.createSecureContext (/home/ddystopia/.local/share/nvim/lazy/copilot.lua/copilot/lib/src/network/certificates.ts:46:23) {\n  library: 'PEM routines',\n  reason: 'no start line',\n  code: 'ERR_OSSL_PEM_NO_START_LINE'\n}"
@negttd
Copy link

negttd commented Jan 7, 2025

This issue because comment in certificate file. I had to update /usr/bin/update-ca-trust to remove
the --comment option from the trust extract commands, then run sudo update-ca-trust and reboot.
This works for me

@qwqawawow
Copy link

qwqawawow commented Jan 11, 2025

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

3 participants