express-stormpath 无法识别要在 Heroku 上初始化的环境变量
express-stormpath not recognizing environment variables to initialize on Heroku
我有一个简单的网络服务器,尝试使用 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 中的一个小型私有配置文件,如下所示:
'apiKey.id is required' error thrown when using express-stormpath with node.js
3) 我尝试了以下方法,手动创建 apiKey 对象:
https://github.com/stormpath/express-stormpath/issues/135
在 heroku 上没有任何效果。有什么建议吗?
我们的 Node SDK 中有一个暂时的错误,请修改您的配置变量以使用这些新名称:
STORMPATH_CLIENT_APIKEY_ID
STORMPATH_CLIENT_APIKEY_SECRET
STORMPATH_APPLICATION_HREF
我们制作了一个接受这些新参数的新版本,但不幸的是它破坏了与旧参数的向后兼容性。我们明天将发布修复程序,但您现在可以通过使用变量名称来修复问题。对于这个问题,我们深表歉意!
我有一个简单的网络服务器,尝试使用 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 中的一个小型私有配置文件,如下所示: 'apiKey.id is required' error thrown when using express-stormpath with node.js
3) 我尝试了以下方法,手动创建 apiKey 对象:
https://github.com/stormpath/express-stormpath/issues/135
在 heroku 上没有任何效果。有什么建议吗?
我们的 Node SDK 中有一个暂时的错误,请修改您的配置变量以使用这些新名称:
STORMPATH_CLIENT_APIKEY_ID
STORMPATH_CLIENT_APIKEY_SECRET
STORMPATH_APPLICATION_HREF
我们制作了一个接受这些新参数的新版本,但不幸的是它破坏了与旧参数的向后兼容性。我们明天将发布修复程序,但您现在可以通过使用变量名称来修复问题。对于这个问题,我们深表歉意!