magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.3k forks source link

Place Order leads to 'Unable to place Order, Please Try Again' #5479

Closed darragh1001 closed 8 years ago

darragh1001 commented 8 years ago

Steps to reproduce

  1. Installed Magento 2.1 Expected result

    Add product to cart then checkout

    Actual result

I get the error: "'Unable to place Order, Please Try Again

No error shown in log, however using browser bugging I get this error:

'https://www.mywebsite.com/rest/dreamstream/V1/guest-carts/c558626bd1545832dd378f9b8f92f445/payment-information Failed to load resource: the server responded with a status of 400 (Bad Request)'

sdzhepa commented 8 years ago

Hello, @darragh1001 !

We tried to reproduce it with steps:

Preconditions:

Result: Order is successfully placed

It seems there is(are) other preconditions/steps/settings in Your case

Could You pls provide more detailed information?

quote: "No error shown in log" Yes, there is issue with logging. This bug is in progress now and we provide fix for it ASAP

Nerogee commented 8 years ago

@sdzhepa Hi, I have the same problem. Fresh installed magento2.1, manual order is working fine. when checkout using Paypal, i found the invoice ID sent through paypal API is always 000000001. Do you think this is the cause? Thanks. This issue baffle me a week now.

liquidia commented 8 years ago

Same issue with stripe extension http://store.cryozonic.com/magento-2/stripe-payments.html(only tested in tested mode)

Though stripe account shows successful transaction Firebug errors: failed to load resource: the server responded with a status of 400 () rest/default/V1/guest-carts/85347343e5e98bfd2b34353439f01/payment-information 400 () .../rest/default/V1/guest-carts/854453794533s061de5e98bfd2b515449f01/payment-information 400 ()

Nerogee commented 8 years ago

@sdzhepa please try to place a few of orders. I mixed actions of paypal checkout and cash on delivery. Doing this is because it's failed under some conditions. and I don't know what actually cause this.

gabriel-sf commented 8 years ago

Just to add a note (since I just fixed it after 3 full days), renaming the tables and removing the table prefix solved the 400 error for me using PayFlow Pro. --> Same thing as other posts using BrainTree

sma09sjb commented 8 years ago

Hi,

i have the same problem, when you say renaming the tables, which tables are you referring to? I'm experiencing this problem with both paypal express and the the stripe extension above. Nothing in the logs but i was initially getting an error as follows

https://github.com/magento/magento2/issues/5843 Exception: Wrong order ID: "000000005".

I changed the order increment because there was already an order in paypal with the same id 000000005,

On the frontend i get a number of different error messages,

"Cannot initialize paypal express"

"Unable to place order. Please try again later"

"We can't create the order"

Any help on this would be greatly appreciated.

Kind regards,

Sophie

gabriel-sf commented 8 years ago

Hi @sma09sjb this is what I did for removing the prefix on the tables.

http://magento.stackexchange.com/questions/103597/how-to-properly-remove-db-table-prefix-in-magento2/103599

sma09sjb commented 8 years ago

Hi,

I don't have any table prefixes, so i'm not sure this will help me. Any other suggestions? I've updated this thread also https://github.com/magento/magento2/issues/5843#issuecomment-240076932

ntekka commented 8 years ago

Maybe my little insight can help resolve this issue.

I've created a custom braintree module that failed validation and Braintree returned the validation message, but it's not passed up the chain for Magento to parse, so you just get a generic "Unable to place order. Please try again later."

\Magento\Braintree\Gateway\Validator\GeneralResponseValidator line 36

To sum it all up, it was an incorrect configuration that failed validation. Although, viewing the original validation message would have been less frustrating.

alena-marchenko commented 8 years ago

Hi @darragh1001

According to contributor guide, tickets without response for two weeks should be closed. Please feel free to reopen if it's needed. Issues described in comments are duplicate to #4580, #5714

goeword commented 6 years ago

Hi,

I am experiencing same issue on my checkout page here, it shows: An error occurred on the server. Please try to place the order again.

Google chrome browser is showing following message:

/rest/english/V1/guest-carts/d78c1ba71d139a97e903304366505e3a/payment-information Failed to load resource: the server responded with a status of 400 (Bad Request) VM5311:2 POST https://mydomain.com/rest/english/V1/guest-carts/d78c1ba71d139a97e903304366505e3a/payment-information 400 (Bad Request)

Is there any solution for this? it has been bugging me for days now.