shadcn-ui / taxonomy

An open source application built using the new router, server components and everything new in Next.js 13.
https://tx.shadcn.com
MIT License
18.63k stars 2.58k forks source link

[GET] /api/users/stripe status=500 #240

Open pwnllc opened 1 year ago

pwnllc commented 1 year ago

When I try to upgrade to pro on my site, I get the [GET] /api/users/stripe status=500 error. My censored .env file:

`# -----------------------------------------------------------------------------

App

-----------------------------------------------------------------------------

NEXT_PUBLIC_APP_URL=https://my.site/

-----------------------------------------------------------------------------

Authentication (NextAuth.js)

-----------------------------------------------------------------------------

NEXTAUTH_URL=https://my.site/ NEXTAUTH_SECRET=axxxxxxxxxxxxxxxxxxxxxxxxxxx783

GITHUB_CLIENT_ID=7xxxxxxxxxxxxxxxxx44 GITHUB_CLIENT_SECRET=93bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx99 GITHUB_ACCESS_TOKEN=ghp_xxxxxxxxxxxxxxxxx

-----------------------------------------------------------------------------

Database (MySQL - PlanetScale)

-----------------------------------------------------------------------------

DATABASE_URL="mysql://jcmxxxxxxxxxxxqq:pscale_pw_1xxxxxxxxxxxxxxxxxxxxxxxxxx@aws.connect.psdb.cloud:3306/db?sslaccept=strict"

-----------------------------------------------------------------------------

Email (Postmark)

-----------------------------------------------------------------------------

SMTP_FROM=support@my.site POSTMARK_API_TOKEN=ec3xxxxx-xxxx-xxxx-xxxx-xxxxxxxx95fd POSTMARK_SIGN_IN_TEMPLATE=3xxxxxx6 POSTMARK_ACTIVATION_TEMPLATE=3xxxxxx6

-----------------------------------------------------------------------------

Subscriptions (Stripe)

-----------------------------------------------------------------------------

STRIPE_API_KEY=pk_test_51xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxLo STRIPE_WEBHOOK_SECRET=whsec_wdxxxxxxxxxxxxxxxxxxxx STRIPE_SECRET_KEY=sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx STRIPE_PRO_MONTHLY_PLAN_ID=123 #btw: dont know what to put in here `

joshbedo commented 11 months ago

had the same issue had to switch STRIPE_API_KEY to secret key instead of publishable key

SumitKumarDev10 commented 11 months ago

Status Code 500 means that there is an internal server error. Seems like a piece of code must have broken down when you tried to upgrade to pro.