missing auth or service api in console with nextjs
Anonymous
TRIALOP

2 years ago

19 Replies

brody
EMPLOYEE

2 years ago

yoho @MantisInABox the clerk expert


brody
EMPLOYEE

2 years ago

n/a


vin
PRO

2 years ago

Looks like you are missing the CLERK_SECRET_KEY environment variable. The Clerk Docs show you that you need to have at least 2 environment variables, the publishable key, and the secret key…

1216616169541341200


Anonymous
TRIALOP

2 years ago

it wasnt that apparently its because i need mongodb in my env on top of that


Anonymous
TRIALOP

2 years ago

its a discord clone I wanted to mess around with


vin
PRO

2 years ago

Make sure that you are using reference variables with the private Database URL. Otherwise, you will be paying for egress charges on every database connection


Anonymous
TRIALOP

2 years ago

do I have to deploy a seperate app or is there a way to integrate it


Anonymous
TRIALOP

2 years ago

yes I dont have one set up atm sadly I'm assuming remote queries works maybe via railway?


Anonymous
TRIALOP

2 years ago

railway as a remote host for mongodb on a seperate app?


vin
PRO

2 years ago

If you have your DB on Mongo Atlas, you can use that, but you will pay egress from your app every time you make a DB request.


Anonymous
TRIALOP

2 years ago

I only have railway and digital ocean


vin
PRO

2 years ago

You can use a database hosted anywhere with your application.


Anonymous
TRIALOP

2 years ago

ok so Im going to use the mongo provision provided by railway


Anonymous
TRIALOP

2 years ago

can you help as to where to get the env data from the seperate app pleasee

1216617745030975500


vin
PRO

2 years ago

That works perfectly fine as well. Once you deploy it, go back to your next app, and add a reference variable for the DB private URL


Anonymous
TRIALOP

2 years ago

found it


Anonymous
TRIALOP

2 years ago

@MantisInABox The provided database string is invalid. MongoDB connection string error: Missing delimiting slash between hosts and options in database URL. Please refer to the documentation in https://www.prisma.io/docs/reference/database-reference/connection-urls for constructing a correct connection string. In some cases, certain characters must be escaped. Please check the string for any illegal characters.

DATABASE_URL mongodb://mongo:RemovedForDiscord@roundhouse.proxy.rlwy.net:44786/test


Anonymous
TRIALOP

2 years ago

its correct


Anonymous
TRIALOP

2 years ago

unless the port shouldnt use a colon?


Loading...