shadcn-ui / taxonomy

An open source application built using the new router, server components and everything new in Next.js 13.

Home Page:https://tx.shadcn.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

pwnguide opened this issue · comments

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
`

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

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.