[GH-ISSUE #437] [BUG] 成功登录后台提示 500 #154

Closed
opened 2026-02-26 20:35:55 +03:00 by kerem · 2 comments
Owner

Originally created by @dnslin on GitHub (Aug 27, 2024).
Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/437

复现步骤

https://temp-mail.bolekmiss.workers.dev/admin/address_sender?limit=20&offset=0

{
  "truncated": false,
  "outcome": "ok",
  "scriptVersion": {
    "id": "0e0e7d92-a96a-404a-9765-d87f4d79cfd0"
  },
  "scriptName": "temp-mail",
  "diagnosticsChannelEvents": [],
  "exceptions": [],
  "logs": [
    {
      "message": [
        "TypeError: t.env.DB.prepare is not a function"
      ],
      "level": "error",
      "timestamp": 1724750615400
    }
  ],
  "eventTimestamp": 1724750615400,
  "event": {
    "request": {
      "url": "https://temp-mail.bolekmiss.workers.dev/admin/address_sender?limit=20&offset=0",
      "method": "GET",
      "headers": {
        "accept": "application/json, text/plain, */*",
        "accept-encoding": "gzip, br",
        "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7,zh-HK;q=0.6",
        "authorization": "REDACTED",
        "cf-connecting-ip": "47.242.194.187",
        "cf-ipcountry": "HK",
        "cf-ray": "8b9b00f23cc684c3",
        "cf-visitor": "{\"scheme\":\"https\"}",
        "connection": "Keep-Alive",
        "content-type": "application/json",
        "host": "temp-mail.bolekmiss.workers.dev",
        "origin": "https://447654.xyz",
        "priority": "u=1, i",
        "referer": "https://447654.xyz/admin",
        "sec-ch-ua": "\"Not)A;Brand\";v=\"99\", \"Google Chrome\";v=\"127\", \"Chromium\";v=\"127\"",
        "sec-ch-ua-mobile": "?0",
        "sec-ch-ua-platform": "\"Windows\"",
        "sec-fetch-dest": "empty",
        "sec-fetch-mode": "cors",
        "sec-fetch-site": "cross-site",
        "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36",
        "x-admin-auth": "REDACTED",
        "x-custom-auth": "REDACTED",
        "x-forwarded-proto": "https",
        "x-real-ip": "47.242.194.187",
        "x-user-token": "REDACTED"
      },
      "cf": {
        "clientTcpRtt": 6,
        "longitude": "114.17590",
        "latitude": "22.28420",
        "tlsCipher": "AEAD-AES128-GCM-SHA256",
        "continent": "AS",
        "asn": 45102,
        "clientAcceptEncoding": "gzip, deflate, br, zstd",
        "country": "HK",
        "tlsClientAuth": {
          "certIssuerDNLegacy": "",
          "certIssuerSKI": "",
          "certSubjectDNRFC2253": "",
          "certSubjectDNLegacy": "",
          "certFingerprintSHA256": "",
          "certNotBefore": "",
          "certSKI": "",
          "certSerial": "",
          "certIssuerDN": "",
          "certVerified": "NONE",
          "certNotAfter": "",
          "certSubjectDN": "",
          "certPresented": "0",
          "certRevoked": "0",
          "certIssuerSerial": "",
          "certIssuerDNRFC2253": "",
          "certFingerprintSHA1": ""
        },
        "tlsExportedAuthenticator": {
          "clientFinished": "17fc6537c86d3596e78e99f6c7026a0bba85dfa65549b8c6ad297b701d0390bb",
          "clientHandshake": "bed1bfdbbc70ecffcdb9e16ca59820556a9c6edc7f21e0a4c27d4aefc48168c0",
          "serverHandshake": "dc6d98c97f053e0f9dd0f5a3e9594bf7f40b8060c78bd43c423c6f4539ee2f08",
          "serverFinished": "f0ad4411e0cb35801dd73f2e2963f34c8462dd8f488ccccfc4415673c60f274a"
        },
        "tlsVersion": "TLSv1.3",
        "colo": "HKG",
        "timezone": "Asia/Hong_Kong",
        "verifiedBotCategory": "",
        "tlsClientHelloLength": "2035",
        "edgeRequestKeepAliveStatus": 1,
        "requestPriority": "weight=220;exclusive=1",
        "tlsClientExtensionsSha1": "nmX6eKB0ZZ+IkHbqbCL8eoCPXa4=",
        "city": "Hong Kong",
        "asOrganization": "Alibaba",
        "tlsClientRandom": "6L/VzviiM+IQsCFlLYLq3vWzt82oRhRh0u9OvRqKDy0=",
        "httpProtocol": "HTTP/2"
      }
    },
    "response": {
      "status": 500
    }
  },
  "id": 7
}

预期行为

1724750758076.png

部署方式

  • cli 部署
  • [x ] 用户界面部署

浏览器环境

Originally created by @dnslin on GitHub (Aug 27, 2024). Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/437 ## 复现步骤 https://temp-mail.bolekmiss.workers.dev/admin/address_sender?limit=20&offset=0 ```json { "truncated": false, "outcome": "ok", "scriptVersion": { "id": "0e0e7d92-a96a-404a-9765-d87f4d79cfd0" }, "scriptName": "temp-mail", "diagnosticsChannelEvents": [], "exceptions": [], "logs": [ { "message": [ "TypeError: t.env.DB.prepare is not a function" ], "level": "error", "timestamp": 1724750615400 } ], "eventTimestamp": 1724750615400, "event": { "request": { "url": "https://temp-mail.bolekmiss.workers.dev/admin/address_sender?limit=20&offset=0", "method": "GET", "headers": { "accept": "application/json, text/plain, */*", "accept-encoding": "gzip, br", "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7,zh-HK;q=0.6", "authorization": "REDACTED", "cf-connecting-ip": "47.242.194.187", "cf-ipcountry": "HK", "cf-ray": "8b9b00f23cc684c3", "cf-visitor": "{\"scheme\":\"https\"}", "connection": "Keep-Alive", "content-type": "application/json", "host": "temp-mail.bolekmiss.workers.dev", "origin": "https://447654.xyz", "priority": "u=1, i", "referer": "https://447654.xyz/admin", "sec-ch-ua": "\"Not)A;Brand\";v=\"99\", \"Google Chrome\";v=\"127\", \"Chromium\";v=\"127\"", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Windows\"", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "cross-site", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36", "x-admin-auth": "REDACTED", "x-custom-auth": "REDACTED", "x-forwarded-proto": "https", "x-real-ip": "47.242.194.187", "x-user-token": "REDACTED" }, "cf": { "clientTcpRtt": 6, "longitude": "114.17590", "latitude": "22.28420", "tlsCipher": "AEAD-AES128-GCM-SHA256", "continent": "AS", "asn": 45102, "clientAcceptEncoding": "gzip, deflate, br, zstd", "country": "HK", "tlsClientAuth": { "certIssuerDNLegacy": "", "certIssuerSKI": "", "certSubjectDNRFC2253": "", "certSubjectDNLegacy": "", "certFingerprintSHA256": "", "certNotBefore": "", "certSKI": "", "certSerial": "", "certIssuerDN": "", "certVerified": "NONE", "certNotAfter": "", "certSubjectDN": "", "certPresented": "0", "certRevoked": "0", "certIssuerSerial": "", "certIssuerDNRFC2253": "", "certFingerprintSHA1": "" }, "tlsExportedAuthenticator": { "clientFinished": "17fc6537c86d3596e78e99f6c7026a0bba85dfa65549b8c6ad297b701d0390bb", "clientHandshake": "bed1bfdbbc70ecffcdb9e16ca59820556a9c6edc7f21e0a4c27d4aefc48168c0", "serverHandshake": "dc6d98c97f053e0f9dd0f5a3e9594bf7f40b8060c78bd43c423c6f4539ee2f08", "serverFinished": "f0ad4411e0cb35801dd73f2e2963f34c8462dd8f488ccccfc4415673c60f274a" }, "tlsVersion": "TLSv1.3", "colo": "HKG", "timezone": "Asia/Hong_Kong", "verifiedBotCategory": "", "tlsClientHelloLength": "2035", "edgeRequestKeepAliveStatus": 1, "requestPriority": "weight=220;exclusive=1", "tlsClientExtensionsSha1": "nmX6eKB0ZZ+IkHbqbCL8eoCPXa4=", "city": "Hong Kong", "asOrganization": "Alibaba", "tlsClientRandom": "6L/VzviiM+IQsCFlLYLq3vWzt82oRhRh0u9OvRqKDy0=", "httpProtocol": "HTTP/2" } }, "response": { "status": 500 } }, "id": 7 } ``` ## 预期行为 ![1724750758076.png](https://a1.boltp.com/2024/08/27/66cd9be12cdb6.webp) ## 部署方式 - [ ] cli 部署 - [x ] 用户界面部署 ## 浏览器环境
kerem closed this issue 2026-02-26 20:35:56 +03:00
Author
Owner

@dreamhunter2333 commented on GitHub (Aug 27, 2024):

DB 不是手动输入的变量,是下面的绑定数据库

<!-- gh-comment-id:2312313815 --> @dreamhunter2333 commented on GitHub (Aug 27, 2024): DB 不是手动输入的变量,是下面的绑定数据库
Author
Owner

@dreamhunter2333 commented on GitHub (Aug 27, 2024):

image

<!-- gh-comment-id:2312315185 --> @dreamhunter2333 commented on GitHub (Aug 27, 2024): ![image](https://github.com/user-attachments/assets/c824455e-9b66-483a-9ce5-a999b7262236)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudflare_temp_email#154
No description provided.