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.

Errors from @kubernetes/client-node returned as "{}"

See original GitHub issue

What is wrong: Errors from @kubernetes/client-node returned as “{}” Why: Properties of the Error object are not enumerable. From the documentation of JSON.stringify(), For all the other Object instances (including Map, Set, WeakMap and WeakSet), only their enumerable properties will be serialized.

Possible solutions: https://stackoverflow.com/questions/18391212/is-it-not-possible-to-stringify-an-error-using-json-stringify

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
koshkarovcommented, Oct 27, 2020

@dot-i Thanks Nico for a quick fix. Your library is very helpful and I appreciate the work you’ve done!

1reaction
dot-icommented, Oct 29, 2020

Should be fixed in 1.0.16 now 🤞

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Running NodeJs kubernetes client example error
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not...
Read more >
TypeScript - watch-example - not working · Issue #401 - GitHub
I copy-pasted the example, and exported a module, here goes: const k8s = require('@kubernetes/client-node'); const kc = new k8s.
Read more >
Troubleshooting kubeadm | Kubernetes
In some situations kubectl logs and kubectl run commands may return with the following errors in an otherwise functional cluster:.
Read more >
Invoking the Kubernetes API in Node.js - DEV Community ‍ ‍
kubernetes -client outputs a HTTP error when a request fails. The following example emulates kubectl apply , by handling a 409 Conflict error...
Read more >
Top 5 @kubernetes/client-node Code Examples - Snyk
key !== singleOperatorName) { console.log(`\n\nOPERATOR ${operatorDefinition.key}\n - skipping`); return ...
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