-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Packages): Adds patch for google-cloud to debug timeout backend e…
…rror (LLC-1156) (#795)
- Loading branch information
1 parent
03d2d75
commit bdc84ba
Showing
5 changed files
with
622 additions
and
592 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/node_modules/@google-cloud/common/build/src/util.js b/node_modules/@google-cloud/common/build/src/util.js | ||
index 4860a5d..022210e 100644 | ||
--- a/node_modules/@google-cloud/common/build/src/util.js | ||
+++ b/node_modules/@google-cloud/common/build/src/util.js | ||
@@ -49,8 +49,12 @@ class ApiError extends Error { | ||
this.code = errorBody.code; | ||
this.errors = errorBody.errors; | ||
this.response = errorBody.response; | ||
+ | ||
+ console.log("API Error. errorBody: ", errorBody); | ||
+ | ||
try { | ||
this.errors = JSON.parse(this.response.body).error.errors; | ||
+ console.log("TRY. parsed response body errors: ", JSON.parse(this.response.body).error.errors); | ||
} | ||
catch (e) { | ||
this.errors = errorBody.errors; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
{ | ||
"extends": [ | ||
"@ht2-labs:base" | ||
], | ||
"enabled": false, | ||
"extends": ["@ht2-labs:base"], | ||
"lockFileMaintenance": { | ||
"enabled": true, | ||
"schedule": [ | ||
"before 5am on monday" | ||
] | ||
"schedule": ["before 5am on monday"] | ||
} | ||
} | ||
} |
Oops, something went wrong.