-
Notifications
You must be signed in to change notification settings - Fork 360
cURL Breaking without -g
#253
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
Comments
@chaffeqa can you give an example on how handling quotes can fix this issue ? |
Honestly I didnt really figure that out, but I'm sure its a quoting issue (since the SO solution mentions that and I know that we are dealing with quotes here)... the |
I guess its not just graphql, curl doesn't accept multiple braces in url and requires a -g option. I tried a few and figured this out ^ |
ooooo its the braces! thx for figuring that out, the quotes stuff seemed the obvious to me, never thought bout braces |
Describe the bug
When using GraphQL query bodies in GET requests, the codegen cURL will fail with
curl: (3) nested brace in URL position 122:
.However it will pass if
-g
is added to the request.To Reproduce
Steps to reproduce the behavior:
vs
Expected code snippet and corresponding request
Add
-g
to all cURL requests by default or properly deal with double vs single quotes (#251)Additional context
collection:
11254382-24f763ba-01f6-4782-85c5-f65f3809457b
Version of postman-code-generators/Postman app: Version 7.24.0 (7.24.0)
The text was updated successfully, but these errors were encountered: