Comments (6)
I had the same issue, but when I followed the old instructions and configured supabase manually, it worked for me.
Here is a link to the old instructions:
https://github.com/vercel/nextjs-subscription-payments/blob/745fef89ff5b1c01115dd7161ddafd13ce330afd/README.md#setup
from nextjs-subscription-payments.
Same problem:
FetchError: invalid json response body at https://....supabase.co/rest/v1/products?select=*%2Cprices%28*%29&active=eq.true&prices.active=eq.true&order=metadata-%3Eindex.asc.nullslast&%22prices%22.order=unit_amount.asc.nullslast reason: Unexpected token < in JSON at position 0 at /Users/chrismendes/Documents/Projects/Stripe/node_modules/node-fetch/lib/index.js:272:32 at processTicksAndRejections (node:internal/process/task_queues:96:5) { type: 'invalid-json' }
Have followed the readme file to the letter. Stripe products/prices in. Webhooks ready. Keys and environment variables done. Even cleared all test data inside Stripe account. Same error when developing locally or deploying on Vercel.
I can't seem to find any presence of a schema or database configuration inside Supabase. Each page within the Supabase dashboard just renders the loading spinner without displaying anything, and then eventually showing, "Error connecting to API".
It was via the Vercel deploy process and the Supabase integration that produced our Supabase account for this project. But seemingly the setup has failed after trying twice, and I don't know how to force a successful Supabase configuration (if indeed relevant).
Anyone have any ideas? Many thanks in advance.
from nextjs-subscription-payments.
This error is more likely to occur when variables are incorrect.
However, I don't think all the variables I set in Stripe are incorrect.
It is possible that the webhook URL is different, I guess.
from nextjs-subscription-payments.
Same. Anyone have any ideas to solve it ?
Many thanks
from nextjs-subscription-payments.
I adopted that method and it worked!
Thank you!
from nextjs-subscription-payments.
I had the same issue, but when I followed the old instructions and configured supabase manually, it worked for me. Here is a link to the old instructions: https://github.com/vercel/nextjs-subscription-payments/blob/745fef89ff5b1c01115dd7161ddafd13ce330afd/README.md#setup
Superstar! Worked for me too. Many thanks @JannaGilleland for taking the time to help. Very much appreciated, thank you.
from nextjs-subscription-payments.
Related Issues (20)
- No API key found in request
- Migrating existing Stripe products
- Supabase Client in Context Provider - Supabase Auth Helpers Client
- Unable to make requests to Supabase from Route Handler HOT 3
- Can't update account information on Oauth connected account HOT 1
- OAuth with Supabase Auth UI doesn't work on chrome browser HOT 3
- Generate product feature list from Stripe product features HOT 1
- Empty NEXT_PUBLIC_SITE_URL env var breaks checkout in local testing HOT 1
- Implement Reset Password HOT 1
- Cant generate Static pages because navbar uses SSR for user HOT 3
- Stripe link redirects to the wrong URL when returning from the "customer Portal" HOT 1
- Feature Request: Light Mode , Dark Mode HOT 1
- Is using SUPABASE_SERVICE_ROLE_KEY in the app safe? HOT 1
- Issue with trial period setting HOT 1
- Webhook Error: No signatures found matching the expected signature for payload. HOT 3
- Is there a fork of this repo that uses popular ORMs like prisma or drizzle ? HOT 2
- Supabase + Vercel Deploy Button loading forever HOT 3
- No overload matches this call. ./app/account/page.tsx:47 HOT 11
- Getting ECONNREFUSED when starting `npm run dev` HOT 1
- Breaking Change by Stripe: Example needs overhaul HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextjs-subscription-payments.