goldbergyoni / node-chaos-monkey

Extremly naughty chaos monkey for Node.js
MIT License
228 stars 10 forks source link

Unable to Perform Chaos #37

Open ramgiteng opened 2 years ago

ramgiteng commented 2 years ago

Hi,

I have installed chaos monkey using npm and included the following lines of code in my app.js file.

const ChaosMonkey = require('chaos-monkey'); const app = express(); ChaosMonkey.initialize(app);

I also started node [filename.js] in port 8084 on my localhost. The following is the output:

Chaos monkey starting point Chaos API is about to register routes, websockets and listen Chaos control is now starting Chaos control is now starting

The following command works. Command: curl -X GET http://localhost:8084/api/products Output: {}

However, based on your readme file, I am unable to execute the Chaos scenarios by hitting the endpoints. Command: curl -X GET http://localhost:8084/chaos/pranks-pool Output: Cannot GET /chaos/pranks-pool

The same goes with the other endpoints (/chaos/random, /chaos/pranks-activity).

Do these routes exist? Do I need to configure anything on my side? Does my application need to operate on port 8081 for this to work?

Thanks for the support!