-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
JSON payload includes an extra space when using python scripts #7
Comments
Is it possible to share the json request body (if you can update the value with dummy value). Also can you confirm if it only happens with auto encrypt? Or is it same when click on pycript tab in repeater. By default pycript tries to beautify the json, can you check if its same in raw and pretty within request. |
Just for reference, can you confirm if the back-end application/API (the one you are working on in the screenshot) gives any error if space are there. Its a default python JSON behaviour to add spaces when json.dump is used. |
Yes, that's why I had to fix it this as the space was breaking the server response |
Have you gone through the Documentation or Video Tutorial
Describe the bug
When you use the automatic encryption feature with Python along with the Request Type of parameter value, the resulting payload adds an additional space in the json body causing an error. It is between the key and the value (after the colon).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
An extra space should not be added, the payload should sit exactly in the same spot as before.
This is not an issue with the encrypting script, as the resulting payload is exactly correct. Removing the space causes the request to successfully pass.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: