dreamhunter2333 / cloudflare_temp_email

CloudFlare free temp domain email 免费收发 临时域名邮箱 支持附件 IMAP SMTP TelegramBot
https://mail.awsl.uk
MIT License
1.56k stars 476 forks source link

想请问一下大佬为什么出现这样的问题和解决方法 #300

Closed DR-lin-eng closed 1 month ago

DR-lin-eng commented 1 month ago

注册邮箱时出现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 1 month ago

注册邮箱时出现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

可以看下worker后台的报错么,是不是 d1 数据库没绑定,或者 名字不是 DB

DR-lin-eng commented 1 month ago

注册邮箱时出现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

可以看下worker后台的报错么,是不是 d1 数据库没绑定,或者 名字不是 DB

Error: D1_ERROR: no such table: settings image image

dreamhunter2333 commented 1 month ago

需要初始化数据库,参考文档的 D1 部分

DR-lin-eng commented 1 month ago

需要初始化数据库,参考文档的 D1 部分

db/schema.sql near "db": syntax error at offset 0 执行了之后报错

dreamhunter2333 commented 1 month ago

db/schema.sql

执行仓库中这个文件的所有内容

image
DR-lin-eng commented 1 month ago

db/schema.sql

执行仓库中这个文件的所有内容 image

感谢指导是我理解错误了,辛苦大佬了

VectorZhao commented 4 weeks ago

db/schema.sql

执行仓库中这个文件的所有内容 image

这是啥意思啊?这个文件的所有内容? 我按照部署文档的D1部分代码依次执行了一遍 然后创建邮箱时worker日志如下

"scriptName": "cloudflare_temp_email", "diagnosticsChannelEvents": [], "exceptions": [], "logs": [ { "message": [ "Error: D1_ERROR: no such table: address" ], "level": "error", "timestamp": 1717575670696 } ],

VectorZhao commented 4 weeks ago

哦,是打开这个文件,把内容复制粘贴进去然后运行。搞定了

DR-lin-eng commented 4 weeks ago

哦,是打开这个文件,把内容复制粘贴进去然后运行。搞定了

抓到一个同病相怜的,一样理解不透策的