Skip to content

Commit

Permalink
YASSS, after too much debugging, found the error was not being converted
Browse files Browse the repository at this point in the history
according to the new format.

Signed-off-by: Michael Nelson <minelson@vmware.com>
  • Loading branch information
absoludity committed Mar 14, 2023
1 parent 1ecbcca commit a327ed2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion dashboard/src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export function getGlobalNamespaceOrNamespace(
// See https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
// See https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go
export function convertGrpcAuthError(e: any): CustomError | any {
const msg = e?.metadata?.headersMap?.["grpc-message"].toString();
const msg = (e?.metadata?.get("grpc-message") || "").toString();
switch (e?.code) {
case Code.Unauthenticated:
return new UnauthorizedNetworkError(msg);
Expand Down
1 change: 0 additions & 1 deletion integration/tests/utils/kubeapps-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ exports.KubeappsLogin = class KubeappsLogin {
console.log("Logging out of Kubeapps");
await this.page.click(".dropdown.kubeapps-menu .kubeapps-nav-link");
await this.page.click('cds-button:has-text("Log out")');
await this.page.waitForLoadState("networkidle");
console.log("Logged out of Kubeapps");
}

Expand Down

0 comments on commit a327ed2

Please sign in to comment.