Open rajun29it opened 7 years ago
@rajun29it - I don't have a windows system to test this with. What is the output of just running this command (when inside the nr-synthetics-plugin directory):
node index.js
Please paste the output of the command.
C:\myData\Soft\NewRelic\plugin\node_modules\config\lib\config.js:913 throw new Error("Cannot parse config file: '" + fullFilename + "': " + e3); ^
Error: Cannot parse config file: 'C:\myData\Soft\NewRelic\plugin\config\custom-e
nvironment-variables.json': SyntaxError: Unexpected token N
at util.parseFile (C:\myData\Soft\NewRelic\plugin\node_modules\config\lib\co
nfig.js:913:11)
at C:\myData\Soft\NewRelic\plugin\node_modules\config\lib\config.js:1292:26
at Array.forEach (native)
at util.getCustomEnvVars (C:\myData\Soft\NewRelic\plugin\node_modules\config
\lib\config.js:1290:12)
at util.loadFileConfigs (C:\myData\Soft\NewRelic\plugin\node_modules\config\
lib\config.js:749:28)
at new Config (C:\myData\Soft\NewRelic\plugin\node_modules\config\lib\config
.js:122:27)
at Object.
Thank you for the quick response. I have pasted the requested information in the github ticket.
Regards, Raju
On Mon, Apr 17, 2017 at 10:45 PM, Ken Ahrens notifications@github.com wrote:
@rajun29it https://github.com/rajun29it - I don't have a windows system to test this with. What is the output of just running this command (when inside the nr-synthetics-plugin directory): node index.js
Please paste the output of the command.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kenahrens/nr-synthetics-plugin/issues/3#issuecomment-294532191, or mute the thread https://github.com/notifications/unsubscribe-auth/AaJsFZYWuWE9yK0XL44r_yD70kgN8Xuwks5rw55LgaJpZM4M_KMB .
@rajun29it - OK it's not able to read the file custom-environment-variables.json
. That's strange since it's a standard JSON file. Would you mind moving that file to another directory and running the node index.js
command again? I suspect it will fail on reading the file default.json
but I'd like to confirm. Also what OS are you running? And how did you download the project?
Hello,
This is the output when i run "node index.js" . FYI, I am using mac machine.
Thu, 20 Apr 2017 09:28:24 GMT - info: Frequency is every 30s, cron: (/30 )
Thu, 20 Apr 2017 09:28:24 GMT - info: Running as a single config.
Thu, 20 Apr 2017 09:28:30 GMT - info: Starting poll cycle with NODE_ENV Environment: default
Thu, 20 Apr 2017 09:28:30 GMT - info: getMonitorList for config: newrelic
Thu, 20 Apr 2017 09:28:31 GMT - error: Error on Insights monitor list call
Thu, 20 Apr 2017 09:28:31 GMT - error: Error: self signed certificate in certificate chain
at TLSSocket.
@eshwarg I believe you have a different issue, so I opened a separate issue in GitHub: https://github.com/kenahrens/nr-synthetics-plugin/issues/4
@rajun29it - were you able to get this working by moving the custom-environment-variable.json
file to another directory?
@rajun29it - I think the tool you used the clone or download the repo may have modified the JSON file. For example are you sure that the double-quotes are correct in the JSON files?
Not able to install new relic plugin using node.js. npm-debug.zip