You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import * as k8s from '@kubernetes/client-node';
try {
// do something with k8s
} catch (e) {
if (e instanceof k8s.HttpError) {
console.error(e.body);
}
}
Expected behavior
If HttpError is not exported, I would be happy to see any upgrade docs state what the replacement is.
The text was updated successfully, but these errors were encountered:
1.0.0 marks a major switch in the HTTP backend from request which has been deprecated for years to node-fetch which is still supported.
Unfortunately, there's breaking changes all over the place as a result of this switch. We would definitely love help in authoring a migration guide, at this point the best thing to do is to look at the examples in the release-1.x branch:
Describe the bug
HttpError
is no longer exported in 1.0.0** Client Version **
1.0.0
To Reproduce
Prior to 1.0.0:
Expected behavior
If
HttpError
is not exported, I would be happy to see any upgrade docs state what the replacement is.The text was updated successfully, but these errors were encountered: