Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error placing an order" on Checkout #2195

Closed
kovinka opened this issue Jan 15, 2019 · 9 comments
Closed

"Error placing an order" on Checkout #2195

kovinka opened this issue Jan 15, 2019 · 9 comments
Assignees
Labels
P0: Critical Priority mark - highest one vs-hackathon Tasks for the Hackathon
Milestone

Comments

@kovinka
Copy link

kovinka commented Jan 15, 2019

Current behavior

while placing an order, Magento 2 looks like quote sometimes is not saved/updated at that moment. As result API returns 500 error in api/order/create response "Error: Error placing an order"

http://demo.vuestorefront.io

screen shot 2019-01-15 at 10 33 34 am

screen shot 2019-01-15 at 10 33 56 am

Steps to reproduce the issue

Add product to cart, directly proceed to checkout and click on "Place order" button.

Repository

master branch

Can you handle fixing this bug by yourself?

no

Environment details

  • Browser: Chrome 71
  • OS: MacOS Mojave 10.14.2
  • Node: v8.12.0

Additional information

API logs:

debug: Response received.
GET /api/cart/payment-methods?token=&cartId=Pw8pGGQ1z1GfIiv6NNbtmaTJlJzOtEmi 200 3481.787 ms - 410
debug: Response received.
error: API call failed: Shipping method is not applicable for empty cart
POST /api/cart/shipping-information?token=&cartId=Pw8pGGQ1z1GfIiv6NNbtmaTJlJzOtEmi 500 3832.740 ms - 72
debug: Response received.
GET /api/stock/check?sku=100759 200 2050.692 ms - 644
debug: Response received.
POST /api/cart/update?token=&cartId=Pw8pGGQ1z1GfIiv6NNbtmaTJlJzOtEmi 200 5066.396 ms - 160

Cannot see any logs in Magento 2 instance connected to this error.

There is similar problem that is connected to current behavior - shipping methods are not loaded and default "DPD Courier" id displayed. After returning to non-checkout page and proceeding to Checkout - default shipping method is replaced with methods from Magento.

Local environment:

screen shot 2019-01-15 at 1 19 06 pm

screen shot 2019-01-15 at 1 19 23 pm

"directBackendSync": true in VS and "useServerQueue": false in API

@patzick
Copy link
Collaborator

patzick commented Jan 16, 2019

Hey @kovinka , yesterday we've updated master branch with 1.7 release. I cannot replicate your case. Could you check if it's still an issue for you?

@kovinka
Copy link
Author

kovinka commented Jan 16, 2019

@patzick, cannot check, looks like some problems on https://demo.vuestorefront.io/, cleared all caches, but cannot open any page
screen shot 2019-01-16 at 2 17 32 pm

@patzick
Copy link
Collaborator

patzick commented Jan 16, 2019

Looks definitely like cache problem, because current files hash is 9e0d450bd6af8bbf9528

Could you try again? Please go to Application -> Clear storage -> Clear site data and run Ctrl+f5/CMD+r

@kovinka
Copy link
Author

kovinka commented Jan 16, 2019

@patzick, done, also tried to open in incognito mode, hash is correct
screen shot 2019-01-16 at 2 31 41 pm

@kovinka
Copy link
Author

kovinka commented Jan 17, 2019

Clicking on "Place the order" does nothing on orderReview step after placing the order before and adding new product and trying to checkout again (pls don't change payment method on 2nd attempt and use 'Check / Money order' method for payment), after reloading the page - button can be clicked (i think because of PR #2133), @patzick could you please check it and after that i can try to reproduce it again

@patzick patzick self-assigned this Jan 18, 2019
@pkarw pkarw added the vs-hackathon Tasks for the Hackathon label Jan 18, 2019
@pkarw
Copy link
Collaborator

pkarw commented Feb 22, 2019

@kovinka is this still a case?

@kovinka
Copy link
Author

kovinka commented Feb 25, 2019

@pkarw
as for checkout - yes, the "Place order" button still does nothing for 2nd checkout process.
Steps:

  • add item, proceed to checkout, choose "Check/money order", place order
  • don't reload the page, return to any product, add it to cart, proceed to checkout, don't switch between payment methods (Check/money order should be selected) and try to place order - no action.

as for "error while placing order" - will check again, it reproduces not every time.

@pkarw
Copy link
Collaborator

pkarw commented Feb 25, 2019

@patzick it would be great to check this before Wednesday

@pkarw pkarw added the P0: Critical Priority mark - highest one label Feb 25, 2019
@patzick
Copy link
Collaborator

patzick commented Feb 26, 2019

@kovinka thanks, you're right. #2505 will solve this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0: Critical Priority mark - highest one vs-hackathon Tasks for the Hackathon
Projects
None yet
Development

No branches or pull requests

3 participants