strapi-examples icon indicating copy to clipboard operation
strapi-examples copied to clipboard

Cooking a Deliveroo clone with Next.js

Open Williamyip146 opened this issue 6 years ago • 4 comments

Node.js version: 11.1.0 NPM version: 6.4.1 Strapi version: 3.0.0-alpha.17 Database: MariaDB/Mysql 10.3.10 Operating system: Mac Optional) Link to your Project: https://github.com/Williamyip146/deliveroo

I have problems with the checkout page, once I've made the payment I get a 500 error message and redirect to homepage. I've checked on the Admin backend to check the order table is still empty after the payment has been made. The following are the errors i am getting:

screenshot 2018-12-24 at 02 54 14 screenshot 2018-12-24 at 02 55 42 screenshot 2018-12-24 at 02 53 27

It suppoed to update the order table and display the latest orders, made by the clients. On the stripe it shows the payment was successed so i am not sure what's causing the errors.

screenshot 2018-12-24 at 03 02 44

stripe

Williamyip146 avatar Dec 24 '18 03:12 Williamyip146

I don't have 500 on my side can you try with version that is on the repo.

lauriejim avatar Mar 28 '19 10:03 lauriejim

I got the same bug as you.

https://github.com/strapi/strapi-examples/issues/101

kktam avatar May 31 '19 03:05 kktam

This bug may be related to an issue in the sample code not using authenticated post. A temporarily fix is to enable "public" access for orders.create in the Admin module and the code will work.

A proper fix is future is to investigate why the call is not posted with authenticated user.

kktam avatar Jun 17 '19 13:06 kktam

I have the same issue and enable the public access for orders.create in the admin module didn't solve it...

reyricoy avatar May 04 '20 14:05 reyricoy

I have the same bug, did anyone manage to solve this?

rufaik avatar Feb 01 '23 16:02 rufaik

I had this issue and fixed it by checking my logs on heroku and I found that the content type number formats were not matching, so I changed my number formats from big integer to decimals

rufaik avatar Feb 01 '23 18:02 rufaik