Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the open-source reactive database for app developers.

Join

support-community

show-and-tell

general

self-hosted

announcements

Which auth to pick

I'm about to start a new (big) project with Convex and Tanstack Start. What auth should I pick? Convex Auth or Better Auth (or any other)?

Is convex login broken atm?

When I try to login in I get "Internal Server Error" I tried incognito mode. Seems to be an issue with WorkOS, I tried to login to my WorkOS account and got the same error....
No description

NPM package down? @convex-dev/aggregate

Seems like the npm package is not available which leads all new deployments to fail. https://www.npmjs.com/package/@convex-dev/aggregate...

What are transient errors in convex?

Hey all, this night a lot of our actions failed with "Transient error while executing action". Do these errors mean there is an error in our user code, or is it a platform error and the action is automatically retried at a later point?...

I cannot sign-in into Convex Dashboard

Im being redirected to an workos.

What api keys can I use.

I was watching the convex local setup. I need api keys. Claude is payed, grok is payed, and so is openai. So there is only gemini remaining. Are there any other options. Ollama maybe or a local model. If not I would strongly advise to add those features since most people don't want to pay for api's.

Connect separate backend service to convex

Hi, I'm trying to connect e separate backend service to my Convex backend. I know Convex is supposed to run as a backend for my app, but I didn't find any good examples on how to run websockets on it and (if possible) I'm also not sure about it's performance compared to Bun websockets. The reason I do this is to build a realtime transcription service. I want when the transcription ends to fill the convex backend with the resulted transcript, but I haven't found any resources on how to create a ConvexClient with admin priviledges. I saw you can setAuth on the the convex client, but I expect that to be the user's auth token right?...

How to output intermediate tool calls to a main agent when using agent as a tool?

Ive been trying to get this to work when using one of my agents as a tool to another agent. Even when i do save all messages config the main agent only gets the final toolcall result of that agent, and not its internal toolcall results. Does anyone have a codesnippet of how to output all the intermediate tool calls of an agent when used as a tool in another agent?...

Import from dev to prod failing with _id ... cannot be imported into 'users' error

Hey team, I’m trying to import data from my dev deployment into prod using the following command: CONVEX_DEPLOY_KEY='prod:xxxx|eyJ2MiI6IjY5NDk2YWY4ZTY1NTQzYzBiMzVi' npx convex import --prod --append ./snapshot.zip -y _id jx72anbqkxyayav4yhj2j79q0n7sqwst cannot be imported into 'users' because it came from a different deployment and conflicts with preexisting tables in this deployment. Try deleting preexisting tables or importing into an empty deployment. ...
No description

Filtering with Queries or with TS?

What is the preferred approach to filtering (for example filtering on tenant id or on soft deletes) . In this case the _id of the document is provided but additional checks need to be done. Is it using regular
ctx.db.get
ctx.db.get
and then doing the filtering in TypeScript...

Error when logging in: Authentication denied. Please contact your administrator.

Hi everyone, I started developing an app using convex, but I'm getting this error when I try to log in: Authentication denied. Please contact your administrator. what should I do?...

Issues getting convex auth to Sveltekit

Ive followed the svelte quickstart https://docs.convex.dev/quickstart/svelte And Im getting the tasks as Im supposed to but when Ive added google oath via convex auth https://docs.convex.dev/auth/convex-auth I run into problems logging in. Ive tried using: import { useConvexClient } from 'convex-svelte'; import { api } from '../../../convex/_generated/api';...

Filestorage exposed to attackers at all times

I found out that the the download Urls, that need to be sent to client for files > 20MB , are always there and never expire. Granted the unique identifier in the url has 34^33 possible combinations, which is quite a lot. There is still a chance someone can guess a url and download sensitive data ..... Proof:...

Phone number verification with twilio

why doesn't twilio from @convex-dev/twilio provider verify method to verify a phone number with an otp code...

Import error in auth.config.ts

In the docs for Nextjs, there is an import import { AuthConfig } from "convex/server" which is causing import error and I searched the docs to find a solution to fix this error, there are no resources I can refer to, please help ...
No description

Problem replacing the production database

Hello guys, I am trying to restore a backup from one of my dev branches into the production one (I did many many updates to the schema) therefore I get a lot of errors like: Hit an error while importing: Failed to insert or update a document in table "subscriptionPlans" because it does not match the schema The problem is I can't even deploy the new schema because it conflict with the current database content in the Production db....

Let's Make Convex Framework Agnostic

I Want to start, I LOVE CONVEX RLYY—it's insane how fast I can build apps! But I was kinda forced to switch to React to use all the cool features with ease (like Tanstack data fetching stuff). I HATE React and want to move back to Svelte. This is a VERY VERY big issue to solve, but I'm willing to contribute some of my free time to get this off the ground. I want to help make Convex framework agnostic. I know I'm not as skilled as most of you are, but I'll try my best! I RLY RLY want to make this work for the sake of Svelte users and loving this product so much. ...

!!Upgraded to Starter plan but still showing Usage limit exceeded

Uncaught ConvexError: User has reached the upload limit for the free plan. Please upgrade to a paid plan to upload more PDFs. this is the error i am getting even after upgraded to starter plan.pls help its urgent...
No description

Provide Hostname in actions

I personally use turnstile and i would love to validate the hostname of the request. I have not found any documentation if i can currently obtain the hostname of the request in an action. https://developers.cloudflare.com/turnstile/get-started/server-side-validation/...

`ctx.auth.getUserIdentity()` returns `null` — missing aud claim despite using AuthKit & Convex

I’m integrating WorkOS AuthKit with Convex in a Next.js app. My setup: - I use AuthKitProvider and ConvexProviderWithAuthKit - I use useAccessToken() from AuthKit and feed that token to Convex...