Giter VIP home page Giter VIP logo

Comments (6)

JannaGilleland avatar JannaGilleland commented on May 22, 2024 5

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.

chrismendes avatar chrismendes commented on May 22, 2024 1

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.

shunki-github avatar shunki-github commented on May 22, 2024

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.

SaamuelBy avatar SaamuelBy commented on May 22, 2024

Same. Anyone have any ideas to solve it ?

Many thanks

from nextjs-subscription-payments.

shunki-github avatar shunki-github commented on May 22, 2024

#88 (comment)

I adopted that method and it worked!
Thank you!

from nextjs-subscription-payments.

chrismendes avatar chrismendes commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.