eisbuk / EisBuk

Manage bookings for ice skating lessons
GNU Affero General Public License v3.0
0 stars 1 forks source link

Make sure a sentry reporting failure does not prevent a cloud function from running #944

Open silviot opened 6 months ago

silviot commented 6 months ago

We had an incident where sentry was down, and cloud functions stopped working with the error:

{
  "textPayload": "Unhandled error Error: connect ECONNREFUSED 185.182.8.119:443\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)\n    at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:128:17) {\n  errno: -111,\n  code: 'ECONNREFUSED',\n  syscall: 'connect',\n  address: '185.182.8.119',\n  port: 443\n}",
  "insertId": "65db122f000d95ed29e4b51a",
  "resource": {
    "type": "cloud_function",
    "labels": {
      "region": "europe-west3",
      "function_name": "queryAuthStatus",
      "project_id": "eisbuk"
    }
  },
  "timestamp": "2024-02-25T10:10:55.890349Z",
  "severity": "ERROR",
  "labels": {
    "instance_id": "00d087f5e0120a316ca39553c8045b0fa2e000e98137e44689d45e4a61f397d6ab237961b5fbb9623d774aedb655bc8f098459f7fb47a241e0b1b3b8a273bf18d5",
    "runtime_version": "nodejs18_20240218_18_19_0_RC00",
    "execution_id": "q7vglj3sogb0"
  },
  "logName": "projects/eisbuk/logs/cloudfunctions.googleapis.com%2Fcloud-functions",
  "trace": "projects/eisbuk/traces/8d701e34d7da3bbd06dcaefb51032d8a",
  "receiveTimestamp": "2024-02-25T10:10:55.997602981Z",
  "errorGroups": [
    {
      "id": "CJPFnIrKoPDKxQE"
    }
  ]
}