Giter VIP home page Giter VIP logo

Comments (15)

bastienallain avatar bastienallain commented on May 23, 2024

i dig a bit more and check related issues
my products are synchronizing in supabase succesfuly.
Screen Shot 2021-11-14 at 09 40 40
I double check the stripe setup on your readme looks Ok.

Firefox_Screenshot_2021-11-14T03-03-50 889Z

I cant find my mistake.
Regards

from nextjs-subscription-payments.

thorwebdev avatar thorwebdev commented on May 23, 2024

Hey @vivacoda can you check your prices table?
image

from nextjs-subscription-payments.

bastienallain avatar bastienallain commented on May 23, 2024

I also check looks Ok. Maybe i miss something.

Screen Shot 2021-11-14 at 13 15 04

Product.md
prices_rows.md

from nextjs-subscription-payments.

thorwebdev avatar thorwebdev commented on May 23, 2024

Can you check your schema for the prices table (click the little arrow next to prices and select edit table)? Maybe the relationship between products and prices isn't correctly set up?

image

from nextjs-subscription-payments.

bastienallain avatar bastienallain commented on May 23, 2024

Thanks i am really grateful for your help
Screen Shot 2564-11-15 at 08 51 56

from nextjs-subscription-payments.

thorwebdev avatar thorwebdev commented on May 23, 2024

Okay, that looks all fine. Have you tried redeploying your page?

The products and prices are fetched at build time and then saved statically (getStaticProps): https://github.com/vercel/nextjs-subscription-payments/blob/main/pages/index.tsx#L14 so maybe they prices were just not inserted yet when your build was running?

from nextjs-subscription-payments.

bastienallain avatar bastienallain commented on May 23, 2024

Same Error.
I will delete the supabase and github and clone again.

from nextjs-subscription-payments.

bastienallain avatar bastienallain commented on May 23, 2024

DEV mode Fresh clone
Screen Shot 2564-11-15 at 11 34 33
I give UP
i try with the webhook on the vercel subdomain and with my domain
When it's build it's not affect the sync
when it's Sync build error

from nextjs-subscription-payments.

bastienallain avatar bastienallain commented on May 23, 2024

Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
[object Object]
info - Generating static pages (6/6)

Build error occurred
Error: Export encountered errors on following paths:
/
at /vercel/path0/node_modules/next/dist/export/index.js:493:19
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:74:20)
at async /vercel/path0/node_modules/next/dist/build/index.js:962:17
at async /vercel/path0/node_modules/next/dist/build/index.js:836:13
at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:74:20)
at async Object.build [as default] (/vercel/path0/node_modules/next/dist/build/index.js:82:25)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command "yarn run build" exited with 1

from nextjs-subscription-payments.

bastienallain avatar bastienallain commented on May 23, 2024

On my own server i got

info  - Creating an optimized production build
info  - Compiled successfully
info  - Collecting page data
[    ] info  - Generating static pages (0/6)Could not find a relationship between products and prices in the schema cache

Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
[object Object]
info  - Generating static pages (6/6)

> Build error occurred
Error: Export encountered errors on following paths:
	/
    at /var/www/viva-sub-fr/node_modules/next/dist/export/index.js:493:19
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Span.traceAsyncFn (/var/www/viva-sub-fr/node_modules/next/dist/trace/trace.js:74:20)
    at async /var/www/viva-sub-fr/node_modules/next/dist/build/index.js:962:17
    at async Span.traceAsyncFn (/var/www/viva-sub-fr/node_modules/next/dist/trace/trace.js:74:20)
    at async /var/www/viva-sub-fr/node_modules/next/dist/build/index.js:836:13
    at async Span.traceAsyncFn (/var/www/viva-sub-fr/node_modules/next/dist/trace/trace.js:74:20)
    at async Object.build [as default] (/var/www/viva-sub-fr/node_modules/next/dist/build/index.js:82:25)
error Command failed with exit code 1.

All my credential are OK
new DB on supabase and fresh clone.

from nextjs-subscription-payments.

bastienallain avatar bastienallain commented on May 23, 2024

Screen Shot 2564-11-17 at 07 48 47
Still not working With the deploy BTN on your repo.

from nextjs-subscription-payments.

thorwebdev avatar thorwebdev commented on May 23, 2024

Very sorry about this. Can you try this (#88 (comment)) while we're looking at the Vercel deploy integration?

from nextjs-subscription-payments.

bastienallain avatar bastienallain commented on May 23, 2024

:)

Very sorry about this. Can you try this (#88 (comment)) while we're looking at the Vercel deploy integration?

I did Thanks now it's build without falling
i add all the env variable.
Supabase empty table No sync. Hope Supabase, NextJS and vercel will sync together before thanksgiving :)
Stripe sync

reporting.report_type.updated
Resend
More options
Response
200 OK

{
  "received": true
}

Screen Shot 2564-11-18 at 09 21 43

from nextjs-subscription-payments.

thorwebdev avatar thorwebdev commented on May 23, 2024

You will need to make sure that you'r project is deployed and your webhook settings are configured correctly before creating the products in Stripe. Try creating a new product in Stripe and see if it syncs. If not, post the Stripe webhook dashboard logs and the vercel function error logs here.

from nextjs-subscription-payments.

thorwebdev avatar thorwebdev commented on May 23, 2024

Closing due to inaction.

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.