Skip to content

Boomcatch failing when forwarder is provided #90

@sameer2904

Description

@sameer2904

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions