A
Alokaiβ€’13mo ago
jeanpier92

error getAvailablePaymentMethods

In the checkout step I am getting the following error { "loading": false, "networkStatus": 8, "errors": [ { "message": "Variable "$cartId" got invalid value {"cartId":""}; String cannot represent a non string value: {"cartId":""}", "locations": [ { "line": 1, "column": 36 } ] } ] } from getAvailablePaymentMethods Please, I would appreciate it if you could help me understand.
No description
12 Replies
jeanpier92
jeanpier92β€’13mo ago
@rohrig
skirianov
skirianovβ€’13mo ago
it looks like you're not providing a cartId value, since it's empty
jeanpier92
jeanpier92β€’13mo ago
hi @skirianov ... An object is being passed to the cartId but I don't know where. It is worth mentioning that I have not intervened in the original code, I am only following up on this unexpected error, since the "make an order" button is not enabled.
No description
No description
rohrig
rohrigβ€’13mo ago
Hi @jeanpier92 πŸ‘‹ , can you give some info about your project? Please paste the package.json here.
jeanpier92
jeanpier92β€’13mo ago
Hi @rohrig. I leave the package.json of my project
jeanpier92
jeanpier92β€’13mo ago
any ideas friend @rohrig ? or where is the cartId passed?
rohrig
rohrigβ€’13mo ago
Our engineers will take a look. πŸ˜„
jeanpier92
jeanpier92β€’13mo ago
@rohrig Please let me know as soon as you have news. I am motivated with this.πŸ™
rohrig
rohrigβ€’13mo ago
will do πŸ˜„
bartoszherba
bartoszherbaβ€’12mo ago
GitHub
fix: update getAvailablePaymentMethods parameters by bartoszherba Β·...
Error [GraphQL error]: Message: Variable "$cartId" got invalid value {"cartId":""}; String cannot represent a non string value: {"cartId":""}, Loca...
bartoszherba
bartoszherbaβ€’12mo ago
the last one will not pass for a while because types package must be released, but you can temporary adjust the code on your side and mute ts-error there
jeanpier92
jeanpier92β€’12mo ago
@Bartosz Herba Thanks!!!
Want results from more Discord servers?
Add your server