UMAprotocol / protocol

UMA Protocol Running on Ethereum
https://uma.xyz
GNU Affero General Public License v3.0
367 stars 179 forks source link

improve(api): bump cloud datastore versions to potentially fix timeouts #4648

Closed daywiss closed 11 months ago

daywiss commented 11 months ago

Motivation

We are getting timeouts in GCP when accessing datastore. This seems to happen when process is running for a long time, a reboot fixes things. It ends up causing pages to on call personnel.

Summary

We are going to simply try bumping the version of the library calling datastore.

Testing

Check a box to describe how you tested these changes and list the steps for reviewers to test.

Issue(s)

https://linear.app/uma/issue/UMA-1812/somekind-of-issue-with-api-server

linear[bot] commented 11 months ago
UMA-1812 somekind of issue with api server

• *error*: FetchError: invalid json response body at [https://boba-api-read-prod-mjuz3qpjuq-ue.a.run.app/global/listActive](https://boba-api-read-prod-mjuz3qpjuq-ue.a.run.app/global/listActive) reason: Unexpected token < in JSON at position 0    at /protocol/node_modules/node-fetch/lib/index.js:273:32    at processTicksAndRejections (node:internal/process/task_queues:96:5)    at async Networker.getJson (/protocol/packages/financial-templates-lib/dist/price-feed/Networker.js:24:22)    at async ContractNotifier.checkUpcomingExpirations (/protocol/packages/contract-notifier/src/ContractNotifier.js:43:29)    at async retry.retries (/protocol/packages/contract-notifier/index.js:54:11)    at async run (/protocol/packages/contract-notifier/index.js:52:7)    at async Poll (/protocol/packages/contract-notifier/index.js:119:5)