nextjs-subscription-payments
Answered
Serengeti posted this in #help-forum
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
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
4 Replies
@Serengeti 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)
you probably want to ask in https://github.com/vercel/nextjs-subscription-payments/issues, this seems like a code bug (your code or their code) or a setup bug (you overlooked a step or something similar)
SerengetiOP
alr
SerengetiOP
Just figured out it was because of some verification that I needed to do in stripe
Answer
SerengetiOP
the subscribe button works