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.
12 Replies
@rohrig
it looks like you're not providing a cartId value, since it's empty
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.
Hi @jeanpier92 π , can you give some info about your project? Please paste the package.json here.
Hi @rohrig.
I leave the package.json of my project
any ideas friend @rohrig ? or where is the cartId passed?
Our engineers will take a look. π
@rohrig Please let me know as soon as you have news. I am motivated with this.π
will do π
here are 2 pr that will fix the issue: https://github.com/vuestorefront/magento2/pull/1476, https://github.com/vuestorefront/storefront-nuxt2-magento2/pull/21
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...
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
@Bartosz Herba Thanks!!!