Closed chaffeqa closed 3 years ago
@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 -g
seems to solve the issue though right? Maybe its as simple as always including -g
on all GraphQL GET requests?
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 (https://github.com/postmanlabs/postman-code-generators/pull/251)Additional context collection:
11254382-24f763ba-01f6-4782-85c5-f65f3809457b
Version of postman-code-generators/Postman app: Version 7.24.0 (7.24.0)