2

我有一个简单的 Web 服务器,尝试使用 npm-package 'express-stormpath' 进行基本用户注册。

在本地一切正常 - 但是当我部署到 Heroku 时一直出现此错误:

 Error: apiKey.id is required.
 2015-10-23T00:23:52.603692+00:00 app[web.1]:     at new RequestExecutor           (/app/node_modules/express-stormpath/node_modules/stormpath/lib/ds/RequestExecutor.js:26:37)

我已经尝试了我可以在互联网上找到的所有可能的方式来配置它:1)完全环境变量,如https://docs.stormpath.com/nodejs/express/latest/configuration.html#environment-variables中所述

2) ./stormfront 中的一个小型私有配置文件,如下所示: 使用 express-stormpath 和 node.js 时抛出“需要 apiKey.id”错误

3)我尝试了以下方法,手动创建 apiKey 对象:

https://github.com/stormpath/express-stormpath/issues/135

在heroku上没有任何作用。有小费吗?

4

1 回答 1

3

We have a momentary bug in our Node SDK, please modify your configuration variables to use these new names:

STORMPATH_CLIENT_APIKEY_ID
STORMPATH_CLIENT_APIKEY_SECRET
STORMPATH_APPLICATION_HREF

We made a new release that accepts these new paramaters, but unfortunately it broke backwards compatibility with the old ones. We will relase a fix tomorrow, but you can fix the problem now by using the variables names. Our apologies for this problem!

于 2015-10-23T01:50:24.823 回答