Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running on local when stripe is not configured #51

Closed
abhayjb opened this issue Oct 9, 2023 · 3 comments
Closed

Error running on local when stripe is not configured #51

abhayjb opened this issue Oct 9, 2023 · 3 comments

Comments

@abhayjb
Copy link

abhayjb commented Oct 9, 2023

(node:86725) ExperimentalWarning: buffer.File is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
{ stripeIsConfigured: false }
{
code: '23502',
details: null,
hint: null,
message: 'null value in column "status" of relation "models" violates not-null constraint'
}

  1. Supabase configured - Done
  2. npm run dev - Done
  3. http://localhost:3000 - Page rendering - Done
  4. magic received in email - Done
  5. images uploaded - Done
  6. click train model - this error appears
@lok0919
Copy link

lok0919 commented Oct 9, 2023

Either allow the status field in the models table to be empty or set the status value during insert.

But then you may run into another problem when running it locally. Leap AI does not accept any callback URLs with localhost, so you can use Localtunnel to expose your application to Leap for callbacks

If you are not subscribed to any plan, you should receive the error from Leap after all the setup.
{"statusCode":402,"message":"Training models is only available on paid plans. Please upgrade to a paid account to use this feature."}

@abhayjb
Copy link
Author

abhayjb commented Oct 10, 2023

Thanks lok919,

allowing status to be empty also throws another error

used Localtunnel to expose localhost for callbacks. The url provided is valid for the node runtime, while I have to run run the app in dev which is a seperate runtime. now trying to find how two node runtimes can be run in parallel

havent reached there yet for the training model to check for paid plans

@whoami-anoint
Copy link

!assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants