[Solved] Error 500 when POSTing to app.snipcart.com/api/cart

Hi there, I am testing Snipcart with a static website generated by Hugo. For some reason, I get a 500 error when calling the API either from localhost or a public staging site.

I have no other error messages in my dev console in Chrome. This happens when I add a product to the cart. The cart modal loads and only displays “We’re getting your cart ready…”. Loading the empty cart modal works fine.

There are no ad-blockers, I have added the three required data attributes to the button and the domains for my local and public test websites are added in the dashboard.

Solution:
Follow this tutorial and ignore the official instructions given in the dashboard: Hugo Tutorial: How to Build a Fast Static Site for E-Commerce

1 Like