Closed daywiss closed 11 months ago
• *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)
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