Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Parse platform 如何为解析服务器配置emailAdapter?_Parse Platform_Passwords_Reset_Mailgun_Parse Server - Fatal编程技术网

Parse platform 如何为解析服务器配置emailAdapter?

Parse platform 如何为解析服务器配置emailAdapter?,parse-platform,passwords,reset,mailgun,parse-server,Parse Platform,Passwords,Reset,Mailgun,Parse Server,我试图在本地运行的解析服务器实例上测试密码重置流。每次发送密码重置请求时,我都会收到以下错误error:Uncaught internal server error。试图发送重置密码,但未设置未定义的适配器。我知道我应该在cli定义中配置emailAdapter,但我不太确定我应该在那里放置什么。我尝试将ParseServer.js中的构造函数更改为 emailAdapter: { module: 'parse-server-simple-mailgun-adapter',

我试图在本地运行的解析服务器实例上测试密码重置流。每次发送密码重置请求时,我都会收到以下错误
error:Uncaught internal server error。试图发送重置密码,但未设置未定义的适配器
。我知道我应该在cli定义中配置emailAdapter,但我不太确定我应该在那里放置什么。我尝试将ParseServer.js中的构造函数更改为

    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',
    }
  }

但这并不奏效。非常感谢您的帮助

我自己刚配置好,我想您可能只是缺少一些参数

在index.js或正在初始化ParseServer的其他文件的配置中,您需要以下所有内容:

 verifyUserEmails: true,
 // Same as the SERVER_URL used to configure ParseServer, in my case it uses Heroku
 publicServerURL: 'http://MY_HEROKU_APP.herokuapp.com/parse', 
 appName: 'MY_APP',
 emailAdapter: {
    module: 'parse-server-simple-mailgun-adapter',
    options: {
      fromAddress: 'no-reply@example.com',
      domain: 'example.com',
      apiKey: 'key-XXXXXX',
    }
 }

我相信,publicServerUrl与服务器URL相同是我的问题所在。谢谢嘿,詹姆斯,你在哪里加的代码?当我添加此项时,我的应用程序无法运行,无法接收任何数据。你能帮忙吗?index.js文件。它添加在var parseConfig={快速提问,这个api密钥是公钥还是私钥?