question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot create customer after guest checkout

See original GitHub issue

Bug report

After guest checkout, cannot create an account

Describe the bug

Made a guest order, then try to create account for the email, got 422

{
    "code": "invalid_request_error",
    "type": "duplicate_error",
    "message": "Customer with email test.t0k9z4um@gmail.com already exists."
}

This scenario works well on v1.6.5

System information

Medusa version (including plugins): 1.7.0 Node.js version: 16 Database: Postgres Operating system: MacOS Browser (if relevant): Postman

Steps to reproduce the behavior

  1. Checkout with email that has not account
  2. Create account with same email (endpoint POST store/customers)

Expected behavior

Able to create customer with the email

Screenshots

Screenshot 2022-12-22 at 4 20 18 PM Screenshot 2022-12-22 at 4 19 05 PM

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rrums123commented, Dec 22, 2022

Yes, I’m able to create customer after medusa migrations run, maybe this should be added on upgrade guides https://docs.medusajs.com/advanced/backend/upgrade-guides/1-7-0

After customer creation, I see 2 accounts with same email. The documentation about the claim order is clear so far. Thank you.

1reaction
shahednassercommented, Dec 22, 2022

Linking this documentation as well in case it’s helpful 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

After guest checkout, user cannot create an account ... - Drupal
This rule originally creates an account with the order e-mail address both as name and email. If the customer later returns and decides...
Read more >
Magento 2.3.3 After completing the order as a guest user ...
Recently after upgrading our site to Magento 2.3.3 Version, the guest user can't create an account after successful checkout.
Read more >
Guest checkout creates account even when not requested
Enable/Disable the option “Allow customers to log into an existing account during checkout” in Woocommerce > Settings > Account & Privacy .
Read more >
The customer account is not created automatically
I cannot find a solution. The customer account is not created automatically. In the Accounts and Privacy tab, I have selected: Guest checkout:...
Read more >
Can't create customer account on checkout success page ...
After placing order and reaching success page customer is presented with "create account" button.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found