Skip to content

Commit

Permalink
fix(Packages): Adds patch for google-cloud to debug timeout backend e…
Browse files Browse the repository at this point in the history
…rror (LLC-1156) (#795)
  • Loading branch information
lucuilearningpool authored Jun 7, 2021
1 parent 03d2d75 commit bdc84ba
Show file tree
Hide file tree
Showing 5 changed files with 622 additions and 592 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ WORKDIR /usr/src/app

COPY package.json package.json
COPY yarn.lock yarn.lock
COPY patches patches
RUN yarn install --production --ignore-engines --frozen-lockfile
COPY dist dist

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"lint": "eslint --cache --quiet --fix src",
"lint-ci": "eslint --quiet src",
"semantic-release": "ht2-release-public-circleci-app",
"codecov": "nyc report --reporter=text-lcov > coverage.lcov && codecov"
"codecov": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"postinstall": "patch-package"
},
"engines": {
"node": ">6.0.0",
Expand Down Expand Up @@ -61,6 +62,8 @@
"mongodb": "^3.0.2",
"node-fetch": "^2.0.0",
"object-hash": "^2.0.0",
"patch-package": "^6.4.7",
"postinstall-postinstall": "^2.1.0",
"query-string": "^6.8.2",
"redis": "^3.0.0",
"rulr": "^4.0.0",
Expand Down
17 changes: 17 additions & 0 deletions patches/@google-cloud+common+3.6.0.patch
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;
11 changes: 4 additions & 7 deletions renovate.json
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"]
}
}
}
Loading

0 comments on commit bdc84ba

Please sign in to comment.