Open adhisun opened 6 years ago
Did you set the required ENV variables, as documented in the README file?
Yes, I did set-up those.
Just FYI ..... Also, I had to modify the database.js in node_modules\agenda\lib\agenda\database.js to code the mongodb uri because I was getting the error shown below
D:\Users\xyz\OrgMonitor\OrgMonitor-master\node_modules\agenda\lib\agenda\database.js:21 if (!url.match(/^mongodb:\/\/.*/)) { ^
TypeError: Cannot read property 'match' of undefined
at Agenda.module.exports [as database] (D:\Users\xyz\OrgMonitor\OrgMonitor-master\node_modules\agenda\lib\agenda\database.js:21:12)
at new Agenda (D:\Users\xyz\OrgMonitor\OrgMonitor-master\node_modules\agenda\lib\agenda\index.js:39:12)
at Object.
Tried to set-up and when accessed http://localhost:3000/add/sandbox , received invalid_client_id error and the url doesn't have the client_id and redirect_uri populated. it was like shown below:
https://test.salesforce.com/services/oauth2/authorize?response_type=code&client_id=&redirect_uri=&scope=api%20refresh_token