title: Heroku Node Express Stormpath 'API key ID and secret is required'
body: <p>I have been following the <a href="https://devcenter.heroku.com/articles/stormpath" rel="nofollow">Heroku Stormpath docs</a> to setup a simple Express app. The code from my server.js file is shown below:</p>
  
  <pre><code>'use strict';
  
  var express = require('express');
  var pg = require('pg');
  var stormpath = require('express-stormpath');
  var app = express();
  
  app.use(express.static('public'));
  
  
  app.use(stormpath.init(app, {
    apiKeyFile: '/.stormpath/apiKey.properties',
    apiKeyId:     process.env.STORMPATH_API_KEY_ID,
    apiKeySecret: process.env.STORMPATH_API_KEY_SECRET,
    secretKey:    process.env.STORMPATH_SECRET_KEY,
    application:  process.env.STORMPATH_URL,
  }));
  
  app.set('port', (process.env.PORT || 5000));
  
  app.listen(app.get('port'), function(){
    console.log('Node app is running on port', app.get('port'));
  });
  </code></pre>
  
  <p>Forgive me for being a newbie to Stormpath. I've looked through the Express-Stormpath docs as well, but I continue to receive the following error when running the app locally:</p>
  
  <pre><code>Node app is running on port 5000
  events.js:141
    throw er; // Unhandled 'error' event
    ^
  
  Error: API key ID and secret is required.
  </code></pre>
  
  <p>I have provisioned the Stormpath addon via Heroku, and when running <code>heroku config</code> in the terminal I see that all of the variables passed into <code>stormpath.init</code> are available. Can someone enlighten me as to what I am doing wrong?</p>