Skip to content

Cannot read properties of undefined (reading 'block') Exception #78

Description

@msert29

I'm trying to deploy to cloudflare worker and after cloning and building the repository with the updated attributes, I get the following exception raised whilst trying to access the page;

{
  "outcome": "exception",
  "scriptName": "notion-cloudflare-worker",
  "exceptions": [
    {
      "name": "TypeError",
      "message": "Cannot read properties of undefined (reading 'block')",
      "timestamp": 1678203099458
    }
  ],
  "logs": [],
  "eventTimestamp": 1678203099274,
  "event": {
    "request": {
      "url": "https://notion-cloudflare-worker.XYZ.workers.dev/v1/page/REDACTED",
      "method": "GET",
      "headers": {
        "accept": "application/json, text/plain, */*",
        "accept-encoding": "gzip",
        "authorization": "REDACTED",
        "cf-connecting-ip": "86.8.247.150",
        "cf-ipcountry": "GB",
        "cf-ray": "7a43e2fa683c3867",
        "cf-visitor": "{\"scheme\":\"https\"}",
        "connection": "Keep-Alive",
        "host": "notion-cloudflare-worker.XYZ.workers.dev",
        "user-agent": "axios/0.21.1",
        "x-forwarded-proto": "https",
      },
      "cf": {
        "clientTcpRtt": 16,
        "longitude": "-2.55310",
        "latitude": "51.47710",
        "tlsCipher": "AEAD-AES128-GCM-SHA256",
        "continent": "EU",
        "asn": 5089,
        "country": "GB",
        "tlsClientAuth": {
          "certIssuerDNLegacy": "",
          "certIssuerSKI": "",
          "certSubjectDNRFC2253": "",
          "certSubjectDNLegacy": "",
          "certFingerprintSHA256": "",
          "certNotBefore": "",
          "certSKI": "",
          "certSerial": "",
          "certIssuerDN": "",
          "certVerified": "NONE",
          "certNotAfter": "",
          "certSubjectDN": "",
          "certPresented": "0",
          "certRevoked": "0",
          "certIssuerSerial": "",
          "certIssuerDNRFC2253": "",
          "certFingerprintSHA1": ""
        },
        "tlsVersion": "TLSv1.3",
        "colo": "LHR",
        "timezone": "Europe/London",
        "city": "Bristol",
        "edgeRequestKeepAliveStatus": 1,
        "requestPriority": "",
        "httpProtocol": "HTTP/1.1",
        "region": "England",
        "regionCode": "ENG",
        "asOrganization": "Virgin Media",
        "postalCode": "REDACTED"
      }
    },
    "response": {
      "status": 500
    }
  },
  "id": 12
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions