我正在尝试用我的应用程序实现我自己的本地解析服务器。除了为用户重置密码之外,一切都运行正常。
我收到以下错误
(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>发布于 2016-11-22 01:16:45
您是否在index.js中配置了电子邮件适配器?根据文档,
电子邮件验证和密码重置
验证用户电子邮件地址并通过电子邮件启用密码重置需要电子邮件适配器。作为解析服务器包的一部分,我们提供了一个适配器,用于通过邮件枪发送电子邮件。要使用它,请注册邮件枪,并将其添加到您的初始化代码中:
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
});https://stackoverflow.com/questions/40591295
复制相似问题