Skip to content

错误码520 #28

@0x032c

Description

@0x032c

这边按照你的教程一键部署cloudflare的woker,绑定了个自定义域名,register、ping、info等路由都没有问题,使用brak推送的时候就报错了{"code":520,"message":"push failed: error code: 520","timestamp":1759036016}

workers-observability日志如下:

{
  "source": {
    "level": "error",
    "message": "GET https://push.xx.com/REDACTED/%E8%BF%99%E9%87%8C%E6%94%B9%E6%88%90%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84%E6%8E%A8%E9%80%81%E5%86%85%E5%AE%B9"
  },
  "dataset": "cloudflare-workers",
  "timestamp": "2025-09-28T05:11:55.944Z",
  "$workers": {
    "event": {
      "request": {
        "cf": {
          "requestHeaderNames": {},
          "isEUCountry": false,
          "httpProtocol": "HTTP/3",
          "clientAcceptEncoding": "gzip, deflate, br",
          "requestPriority": "",
          "colo": "AMS",
          "asOrganization": "Chinatelecom IPv6 address for mobile",
          "country": "CN",
          "city": "Shenzhen",
          "continent": "AS",
          "region": "Guangdong",
          "regionCode": "GD",
          "timezone": "Asia/Shanghai",
          "longitude": "114.0683",
          "latitude": "22.54554",
          "postalCode": "518000",
          "tlsVersion": "TLSv1.3",
          "tlsCipher": "AEAD-AES128-GCM-SHA256",
          "tlsClientRandom": "IsueRrU4168dXB2/I6CTLISJiOOGjf6+WPNdE/xaV1I=",
          "tlsClientCiphersSha1": "",
          "tlsClientExtensionsSha1": "XbnVtT2dC11p/dCZwA4MyoKnOqs=",
          "tlsClientExtensionsSha1Le": "",
          "tlsClientHelloLength": "254",
          "tlsClientAuth": {
            "certPresented": "0",
            "certVerified": "NONE",
            "certRevoked": "0",
            "certIssuerDN": "",
            "certSubjectDN": "",
            "certIssuerDNRFC2253": "",
            "certSubjectDNRFC2253": "",
            "certIssuerDNLegacy": "",
            "certSubjectDNLegacy": "",
            "certSerial": "",
            "certIssuerSerial": "",
            "certSKI": "",
            "certIssuerSKI": "",
            "certFingerprintSHA1": "",
            "certFingerprintSHA256": "",
            "certNotBefore": "",
            "certNotAfter": ""
          },
          "verifiedBotCategory": "",
          "edgeRequestKeepAliveStatus": 1,
          "clientTcpRtt": 0,
          "asn": 4134
        },
        "url": "https://push.xx.com/REDACTED/%E8%BF%99%E9%87%8C%E6%94%B9%E6%88%90%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84%E6%8E%A8%E9%80%81%E5%86%85%E5%AE%B9",
        "method": "GET",
        "headers": {
          "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
          "accept-encoding": "gzip, br",
          "accept-language": "zh-CN,zh-Hans;q=0.9",
          "cf-connecting-ip": "240e:47f:34d0:287:1a5:46c2:54db:33ae",
          "cf-ipcountry": "CN",
          "cf-ray": "9860be2e8d48c13c",
          "cf-visitor": "{\"scheme\":\"https\"}",
          "connection": "Keep-Alive",
          "cookie": "REDACTED",
          "host": "push.xx.com",
          "priority": "u=0, i",
          "sec-fetch-dest": "document",
          "sec-fetch-mode": "navigate",
          "sec-fetch-site": "none",
          "user-agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Mobile/15E148 Safari/604.1",
          "x-forwarded-proto": "https",
          "x-real-ip": "240e:47f:34d0:287:1a5:46c2:54db:33ae"
        },
        "path": "/REDACTED/%E8%BF%99%E9%87%8C%E6%94%B9%E6%88%90%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84%E6%8E%A8%E9%80%81%E5%86%85%E5%AE%B9"
      },
      "rayId": "9860be2e8d48c13c",
      "response": {
        "status": 520
      }
    },
    "diagnosticsChannelEvents": [],
    "truncated": false,
    "scriptName": "bark-worker",
    "outcome": "ok",
    "eventType": "fetch",
    "executionModel": "stateless",
    "scriptVersion": {
      "id": "386bf94f-e9b9-4a89-a86b-520922ea5456"
    },
    "requestId": "9860be2e8d48c13c",
    "cpuTimeMs": 3,
    "wallTimeMs": 1045
  },
  "$metadata": {
    "id": "01K67BR698FZ61SVEBARGG6711",
    "requestId": "9860be2e8d48c13c",
    "trigger": "GET /REDACTED/%E8%BF%99%E9%87%8C%E6%94%B9%E6%88%90%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84%E6%8E%A8%E9%80%81%E5%86%85%E5%AE%B9",
    "service": "bark-worker",
    "level": "error",
    "error": "GET https://push.xx.com/REDACTED/%E8%BF%99%E9%87%8C%E6%94%B9%E6%88%90%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84%E6%8E%A8%E9%80%81%E5%86%85%E5%AE%B9",
    "message": "GET https://push.xx.com/REDACTED/%E8%BF%99%E9%87%8C%E6%94%B9%E6%88%90%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84%E6%8E%A8%E9%80%81%E5%86%85%E5%AE%B9",
    "account": "78698acb9ca538f3833ed1a93ba19105",
    "type": "cf-worker-event",
    "fingerprint": "3487bbd1ec7c7177cb4e062a800b38e0",
    "origin": "fetch",
    "messageTemplate": "GET https://push.xx.com/REDACTED/%E8%BF%99%E9%87%8C%E6%94%B9%E6%88%90%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84%E6%8E%A8%E9%80%81%E5%86%85%E5%AE%B9"
  },
  "links": []
}

更换域名依旧没有解决,域名waf白名单里面不会有任何拦截

大佬帮忙看看是什么问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions