Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.

Adding an item to the cart fails when you have never called getCart #15

Open
sthomas69 opened this issue Aug 3, 2016 · 1 comment
Open

Comments

@sthomas69
Copy link

To reproduce the bug follow these steps:-

  1. A new user (an account that is not known by Auth0) logs in they get a token from Auth0.
  2. Find an item and call .../cart/add/1 for example. The number of the item is not important
  3. You receive a 404 error when using the ...azurewebsites.net or you get a 500 error when running the enterprise-musicstore-api-aspnet locally using Visual Studio

Basically, the cart for the new user is not getting created before placing the item into it!

The workaround was to call getCart and then the call to .../cart/add/1 succeeds.

The bug can only be recreated using an account that has never called getCart.

@fenix2222
Copy link
Collaborator

#16

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants