Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boomcatch failing when forwarder is provided #90

Open
sameer2904 opened this issue Apr 11, 2018 · 1 comment
Open

Boomcatch failing when forwarder is provided #90

sameer2904 opened this issue Apr 11, 2018 · 1 comment

Comments

@sameer2904
Copy link

Hi,

I am trying to implement boomcatch either as a standalone or as a middleware in my node project. FOr the standalone I am using this command to run:-

boomcatch --host 127.0.0.1 --port 3001 --path /perf/beacon --forwarder http --fwdUrl /perf/beacon --fwdPort 3000 --fwdMethod POST --fwdHost 127.0.0.1

but this is failing for the reason:

/usr/local/lib/node_modules/boomcatch/node_modules/check-types/src/check-types.js:643
throw new Error(message || 'Assertion failed');
^

Error: Invalid string
at assertImpl (/usr/local/lib/node_modules/boomcatch/node_modules/check-types/src/check-types.js:643:19)
at assertPredicate (/usr/local/lib/node_modules/boomcatch/node_modules/check-types/src/check-types.js:638:9)
at Function.match (/usr/local/lib/node_modules/boomcatch/node_modules/check-types/src/check-types.js:632:13)
at verifyForwarderOptions (/usr/local/lib/node_modules/boomcatch/src/index.js:254:26)
at verifyOptions (/usr/local/lib/node_modules/boomcatch/src/index.js:173:5)
at Object.exports.listen (/usr/local/lib/node_modules/boomcatch/src/index.js:130:9)
at runServer (/usr/local/lib/node_modules/boomcatch/src/cli.js:90:10)
at Object. (/usr/local/lib/node_modules/boomcatch/src/cli.js:30:1)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)

But if I remove it works but the beacon data captured, I need to make a post call another node project to save it. But its not making the call. This node has the api POST -- localhost:3000/perf/beacon.

Can you please suggest what is the issues here.

@jpw
Copy link

jpw commented Apr 11, 2018

Hi sameer2904,

Thanks for raising the issue.

boomcatch --host 127.0.0.1 --port 3001 --path /perf/beacon --forwarder http --fwdUrl /perf/beacon --fwdPort 3000 --fwdMethod POST --fwdHost 127.0.0.1

I think the problem is here: --fwdUrl /perf/beacon -- that argument needs to be a URL, but /perf/beacon is a path. So for example, something like --fwdUrl http://127.0.0.1/perf/beacon should work

It does seem to me boomcatch could output a more useful error message though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants