51 viewsNext Amazona

Hi Basir!

Been doing the nextAmazona tutorial and it’s been wonderful!  Currently I’m hitting this error in the server:

” https://next-auth.js.org/errors#client_fetch_error undefined {
error: {},
url: ‘http://localhost:3000/api/auth/session’,
message: undefined”

and this error in the console: xhr.js?6a0b:247 POST http://localhost:3000/api/orders 401 (Unauthorized)

Would you be able to diagnose the issue?  These errors pop up after I hit “Place Order” button – I have tried restarting server, logging out and logging back in but I keep getting this issue.

I greatly appreciate any help!

Dominic Posted new comment November 27, 2023