Next.js Discord

Discord Forum

nextjs-subscription-payments

Answered
Serengeti posted this in #help-forum
Open in Discord
SerengetiOP
I'm following the repo https://github.com/vercel/nextjs-subscription-payments
I have done everything written in the setup docs and everything works but except this.
I'm getting this error in the console
also showing me Internal server error when clicking subscribe button

Error: {
  code: 'PGRST116',
  details: 'Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row',
  hint: null,
  message: 'JSON object requested, multiple (or no) rows returned'
}

-  ┌ GET /account 200 in 403ms
   │
   ├──── GET https://xgftpvejsfrkvtnt../rest/v1/subscriptions?select=*%2Cpric.. 406 in 339ms (cache: MISS)
   │
   ├──── GET https://xgftpvejsfrkvtnt../rest/v1/users?select=* 200 in 346ms (cache: MISS)
   │
   └──── GET https://xgftpvejsfrkvtnt../auth/v1/user 200 in 339ms (cache: MISS)
Answered by Serengeti
Just figured out it was because of some verification that I needed to do in stripe
View full answer

4 Replies