-
Notifications
You must be signed in to change notification settings - Fork 9
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
Creating a toxic for an existent proxy gives an exception #15
Comments
Hi @joaoasrosa!
If issue still persists, can you also add here the |
The snippet of the experiment looks like:
The parameters came from the environment variables. I will do an experiment with hardcoded values to check the result. |
Using hardcore parameters in the method:
The toxic is created, and the chaos experiment contiue the execution. |
Unfortunately, one of the limitation of parametrization is that it will always render as a string a variable. Maybe this be considereda bug in the toolkit? |
I'm happy to follow that path. An interesting observation from the code (I'm not a Python expert):
The function parameters are defined as |
@Lawouach do you think this issue should be addressed in |
Yes, definitely! Here it is :) chaostoolkit/chaostoolkit-lib#137 |
Issue
I'm trying to add an experiment to the catalogue. The idea is to use toxiproxy, and proxy the calls to a mysql database. With that, I can control the type of faults that would be injected,
The environment is on AWS: toxiproxy in a ubuntu machine, and mysql in a rds instance. The app is .net core (not relevant) and exposes a REST API.
The experiment verifies the steady-state (one of the API endpoints) and then creates a toxic. The proxy is already created, due to the fact that the app needs to connect to it.
However, when trying to create the toxic, there is an error:
Digging into that, I used postman to post the same payload to the endpoint. The payload generated by the chaostollokit extensions:
Extracting the full payload (on my environment added a line to output the json), looks like this:
Using the same payload on postman, I get the full error:
Although the attributes are of type
int
(from what I got in the code), when parsed to json transforms intostring
. Toxiproxy is picky with the types.Environment
2.1.4
Ubuntu
1.3.0
Cataliana 10.15
The text was updated successfully, but these errors were encountered: