question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Start with config file reference error

See original GitHub issue

Created a config:

{
    "upstreamHost":    "10.0.0.1",
    "upstreamPort":    5000,
    "listenPort":      2014,
    "vv":              true,
    "logFile":         "log.txt"
}

When I start, I got this error on Windows and Linux machine:

$ node socketQueue.js --c=config.json
C:\SocketQueue\socketQueue.js:46
    var val = readCfgParam(name, cfgData[name]);
              ^

ReferenceError: readCfgParam is not defined
    at Object.<anonymous> (C:\SocketQueue\socketQueue.js:46:15)

    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jukscommented, Sep 14, 2016

Also, if you provide the real use cases, payloads of the system you need to communicate with, then you may count on me to assist in creation of templates or implementing some new configuration options.

1reaction
jukscommented, Sep 14, 2016

Any more feedback?

Read more comments on GitHub >

github_iconTop Results From Across the Web

C#: Config file error - Stack Overflow
.config file without <configuration> is not configuration file, it's just another meaningless XML file.. – Shadow Wizard Chasing Stars.
Read more >
ReferenceError: Given config path must be a valid file path #190
I have tried to add quotes to the config path --config \"js/config.json\" , and also a reference to the current folder --config ./js/config.json ......
Read more >
Error While Reading config File - Help - UiPath Forum
Hi All, I am trying to read a credential from my Orchestration and for the same I have reused the REFramework component.
Read more >
Why do I see the "Configuration file does not exist" error after ...
Open the installer with right click > Run as Administrator option when upgrading or installing an application. If you have already installed ...
Read more >
Error loading config file | Heartbeat Reference [8.5] - Elastic
You may encounter errors loading the config file on POSIX operating systems if: an unauthorized user tries to load the config file, or;...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found