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

Incorrect behaviour of the cast_data_to_json in integration execution #519

Open
Daandeve opened this issue Feb 14, 2025 · 0 comments
Open

Comments

@Daandeve
Copy link

I found something very strange, when executing a request with "cast_data_to_json": true the data gets send as a formdata body, also when you do not provide cast_data_to_json and when you provide "cast_data_to_json": false the data gets send as a json body.

This is the configuration, the only thing I change is the `cast_data_to_json``field

        {
            "url": "xxx",
            "data": {
                "name": "{{first_name}} {{last_name}}",
                "email": "{{email}}",
                "username": "{{first_name}} {{last_name}}"
            },
            "method": "POST"
        }

Received request body with "cast_data_to_json": true:

name=Test+Test&email=testing%40example.com&groups=&username=Test+Test

Received request body with "cast_data_to_json": false:`

{"name": "Test Test", "email": "[email protected]", "username": "Test Test"}

Received request body without cast_data_to_json:

name=Test+Test&email=testing%40example.com&groups=&username=Test+Test
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