我正在尝试使用我的应用程序实现我自己的本地解析服务器。除了为用户重置密码外,一切正常。
我收到以下错误
(node:8729) UnhandledPromiseRejectionWarning: Unhandledpromiserejection
(rejection id: 2): Error: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title><h1>Not Found</h1><p>The requested URL was not found on
the server.</p>
<p>If you entered the URL manually please check your spelling and try again.</p>
答案 0 :(得分:0)
您是否在index.js中配置了电子邮件适配器?根据文件,
电子邮件验证和密码重置
验证用户电子邮件地址并通过电子邮件重置密码需要电子邮件适配器。作为parse-server软件包的一部分,我们提供了一个通过Mailgun发送电子邮件的适配器。要使用它,请注册Mailgun,并将其添加到初始化代码中:
var server = ParseServer({
...otherOptions,
// Your apps name. This will appear in the subject and body of the emails that are sent.
appName: 'Parse App',
// The email adapter
emailAdapter: {
module: 'parse-server-simple-mailgun-adapter',
options: {
// The address that your emails come from
fromAddress: 'parse@example.com',
// Your domain from mailgun.com
domain: 'example.com',
// Your API key from mailgun.com
apiKey: 'key-mykey',
}
},
...otherOptions
});