#I am receiving error: Could not find payment session
34 messages · Page 1 of 1 (latest)
What is the total of your cart?
And is it available in your region ?
sometimes cart isn't adding to product
sometimes it adds, other times it just doesn't
I checked from postman it is working but it is taking a while around 6s and on the storefront its taking 3s but it is not adding the item to the cart
any idea adrien?
I dont have any issue else where
I also wrapped the function in the photo shown above, in a try catch block
It either add or update it, are you sure that when it does not add it it is not because it already exists and update it?
And which version are you using? 3s seems to be a lot
1.7.2
basically as a user im adding product A to cart
then re-adding product A again
I ll have to jump on a call, but it looks weird, are you customising something that might interfer?
is this how it should be ?
im not using anything at all other than that
im using basic functions that don't require any promises
When you re add it, it updates the first one since there is an existing and, the if the item has should_merge true then it is normal
and they are running fine too
Are you using the existing end point? If it takes more time than the existing one it means that something you are doing is blocking
no a custom endpoint, but for adding the line item
i am using the cartService core method
addOrUpdateLineItems
Yes which acts normally as explained earlier it update the item if it already exists etc etc.
But the response time, it should not be that high
Yeah but still the same answer 😂
it worked nvm
anyways
I am receiving this warning on add to cart -> WARN: withTransaction called without custom implementation
what could this mean ?
It is just a warn, some default implementation of services that are just mocked of plugins do not implement the withTransaction. You can pass without problem
oh ok