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

Unable to Perform Chaos #37

Open
ramgiteng opened this issue Oct 21, 2021 · 0 comments
Open

Unable to Perform Chaos #37

ramgiteng opened this issue Oct 21, 2021 · 0 comments

Comments

@ramgiteng
Copy link

ramgiteng commented Oct 21, 2021

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!

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

1 participant