You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our context we have sessions disabled, so we can't have an anonymous basket in the session, which leads to this AttributeError too.
A way to fix it could be, in class BasketList(generics.ListAPIView): to check the result of get_anonymous_basket against Null and just return an empty list if it's the case.
when trying to fetch baskets API to get anonymous cart information it shows
API:
/api/baskets/
request: GET
view: BasketList
problem point:
oscarapi/views/basic.py
78 number line.
if no cart/basket is in session it shows an error but needs an error handler.
The text was updated successfully, but these errors were encountered: