mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-25 13:55:53 +03:00
[GH-ISSUE #300] 想请问一下大佬为什么出现这样的问题和解决方法 #91
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#91
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DR-lin-eng on GitHub (Jun 1, 2024).
Original GitHub issue: https://github.com/dreamhunter2333/cloudflare_temp_email/issues/300
注册邮箱时出现Code 400: Failed create address: Failed to create address
管理员界面出现:Code 500: Internal Server Error
附上报错的控制台
400的: POST https://emailcuncu.linzefeng.top/api/new_address 400 (Bad Request)
500:Failed to load resource: the server responded with a status of 500 ()
Admin-9OyjNtz4.js:35 Error: Code 500: Internal Server Error
at Object.Li [as fetch] (index-BepwDP49.js:4037:5518)
at async k (Admin-9OyjNtz4.js:35:11682)
at async Admin-9OyjNtz4.js:35:13149
@dreamhunter2333 commented on GitHub (Jun 1, 2024):
可以看下worker后台的报错么,是不是 d1 数据库没绑定,或者 名字不是 DB
@DR-lin-eng commented on GitHub (Jun 1, 2024):
Error: D1_ERROR: no such table: settings


@dreamhunter2333 commented on GitHub (Jun 1, 2024):
需要初始化数据库,参考文档的 D1 部分
@DR-lin-eng commented on GitHub (Jun 1, 2024):
@dreamhunter2333 commented on GitHub (Jun 1, 2024):
执行仓库中这个文件的所有内容

@DR-lin-eng commented on GitHub (Jun 2, 2024):
感谢指导是我理解错误了,辛苦大佬了
@VectorZhao commented on GitHub (Jun 5, 2024):
这是啥意思啊?这个文件的所有内容?
我按照部署文档的D1部分代码依次执行了一遍
然后创建邮箱时worker日志如下
"scriptName": "cloudflare_temp_email",
"diagnosticsChannelEvents": [],
"exceptions": [],
"logs": [
{
"message": [
"Error: D1_ERROR: no such table: address"
],
"level": "error",
"timestamp": 1717575670696
}
],
@VectorZhao commented on GitHub (Jun 5, 2024):
哦,是打开这个文件,把内容复制粘贴进去然后运行。搞定了
@DR-lin-eng commented on GitHub (Jun 5, 2024):
抓到一个同病相怜的,一样理解不透策的