GaloyMoney / blink

bitcoin banking infrastructure
https://galoy.io
MIT License
363 stars 138 forks source link

No invoice returned if `externalId` contains spaces #4530

Open krtk6160 opened 1 month ago

krtk6160 commented 1 month ago
curl 'https://api.blink.sv/graphql' \
  -H 'accept: */*' \
  -H 'accept-language: en-GB,en;q=0.9' \
  -H 'apollo-expose-query-plan: true' \
  -H 'content-type: application/json' \
  -H 'dnt: 1' \
  -H 'origin: https://api.blink.sv' \
  -H 'priority: u=1, i' \
  -H 'referer: https://api.blink.sv/graphql' \
  -H 'sec-ch-ua: "Brave";v="125", "Chromium";v="125", "Not.A/Brand";v="24"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Linux"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-origin' \
  -H 'sec-gpc: 1' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36' \
  --data-raw $'{"query":"mutation LnInvoiceCreateOnBehalfOfRecipient($input: LnInvoiceCreateOnBehalfOfRecipientInput\u0021) {\\n        lnInvoiceCreateOnBehalfOfRecipient(input: $input) {\\n          invoice {\\n            paymentRequest\\n            paymentHash\\n          }\\n        }\\n      }","variables":{"input":{"externalId":"some id","amount":1,"recipientWalletId":"<some-id>"}},"operationName":"LnInvoiceCreateOnBehalfOfRecipient"}'```

Is this expected behavior?