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

AuthConfig not found in convex/server package (Auth0 & NextJs setup)

Hey all, I've been working on a simple project that integrates Auth0 into a NextJs & Convex app. This is not the first time of me using this setup, but I'm running into a few problems at the moment. The problems (see example code below):...

Rag Search Return Value Error

Error Uncaught Error: ReturnsValidationError: Value does not match validator. Path: .results[0].score Value: null Validator: v.float64()...

Call convex from a Node.js backend using service authentication

Hi, I need to call Convex from a Node.js backend using service authentication (per https://docs.convex.dev/auth#service-authentication). What's the recommended way to use the admin key in the Node.js client? Do I have to pass it as an argument to every query/mutation, or can I set it once when initializing the client to avoid boilerplate? I also noticed the internal setAdminAuth function. Is that intended for this use case?...

Polar Build errors

Polar is working fine on dev server and building locally works fine. When i try to deploy to vercel, i get this error

OpenAI Deep Research tool requirements

In order to use openAI deep research you have to call tools like this: ```json tools=[ {...

is there a way to visualize the convex agent or workflow's execution?

for mastra they have a way to visualize the agents and workflow, and their execution. Does convex have similar features? i know theres the 'playground', but im looking for something more full fledged. I'm also ahppy to help develope this if this is on the roadmap...

Deployment differences between Convex and Vercel

My current project is built with Next.js, using Convex as the database and Vercel for deployment. We’re experiencing deployment issues in production caused by a mismatch in the build timing between Convex and Vercel. Specifically: Convex finishes building first — for example, removing a function....

When is EU cloud comming?

Will it be before december, will it come our in november?

Failed connections from Singapore

This is not the first time that this has happened. Websocket connections fail to load data for anything more than 10kb. I have no idea what to do about it, all my apps are down. Convex dashboard doesn't load either.

Websocket backend integration

Hey 👋🏻 does anyone have some creative ideas of how to get Convex to make use of websocket streaming? This would be a cool feature to add overall. Example: I'm working on a stock market app, and the API I use provides REST and websockets. Obviously websockets would be a lot cooler and play extremely well with Convex' reactivity. BUT... functions are limited to 15 minutes. I guess I could re-establish a connection every 15 minutes but this feels kinda unncessary....

Slack bots on Convex

I'd like to create a Slack bot that runs on Convex using @slack/bolt Has anyone tried this recently? I saw some old posts where people were having (minor?) issues, but it wasn't entirely clear to me if this is fully supported now!

Server-side token forwarding for AuthKit + Convex in Next.js

I’m using @workos-inc/authkit-nextjs middleware (now called proxy) with Convex in a Next.js App Router project. On the client side, everything works — ctx.auth.getUserIdentity() returns a user after login. My question: Does AuthKit middleware automatically forward the session token for server-side calls to fetchQuery / preloadQuery, or do I need to pass { token } every time manually? I saw the changelog stating "No extra wiring or token exchange needed.", but I'm gueesing that's meant for client-side functions? Anyway, I can’t find clear docs about usage in server components and routing....

sign in page flashing after OSS-callback in android

Hi, I'm building my app with RN expo clerk and convex. After I set up clerk and convex i was trying the login page with google sign in. for some reason im having this weird bug in android where after the oss-callback made it to my app, the login page flashes for a brief moment, then a black (or white if the device default theme is white) screen flashes also briefly, then to the "/" route. this flashing doesn't happen in IOS. the layout of my home page has the following...

Need better understanding of AI Agent and RAG Component

First of all, I'm new to AI Agents in general. In my application, I would like to add a Chat GPT like page where my users can ask questions against my database, essentially query my database with natural language. So for example a user could ask "What are the top 10 best products sold in the past 3 months?".
I have read the convex documentation about AI Agent and RAG component. But I could not understand how to "direct" toward my tables, or how to "include" my tables in the context. I know about MCP that can "augment" the capabilities of a LLM. With my limited knowledge, I would think something like: ...

Question regarding file storage and file bandwith limit

Hi, lets' say I'm on the free plan with referral boosts and I have 3GB of file storage space in Convex. Is it normal that the file bandwidth is 3GB too? So if i have a 1GB file in my storage and a Convex function / user is requesting it three times I'm already at the limit? Thanks for clarifying this....

How do you guys manage auth with NextJS?

Hi, I’m currently dealing with an issue where auth is very inconsistent. I have every complement that calls a convex function inside a <Authenticated> component, but often the requests will fail since on the server side I am checking auth with getUserIdentity, and it seems like the JWT isn’t being passed on. I’m using WorkOS. Have you guys dealt with similar issues where auth seems to fail inconsistently?...

Persisting storage in React Native for a chat app

Let's take the chat app example for this, as our usecase is quite similar. We built an app that shows users a bunch of messages. We'd like the messages to be cached client-side across app restarts, with only the diffs being sent. So I guess in traditional databases it'd be some combo of a paginated query with a cursor + a separate offline database replication / cache / whatever. How can I implement this in Convex? We have a single user and already approaching free plan limits lol...

Is Convex the best choice? (For me)

Hey guys, I’ve got a product which is a CRM/ Booking system and invoice system. There is 70 tables in the db (currently using neon) ...

content within <Unauthenticated /> display regardless of user status

I followed the WorkOS authentication guide for Next.js at https://docs.convex.dev/auth/authkit/ and after signing up with a google account, and the user object being present from workos' useAuth(), it still only displays the content from <Unauthenticated /> and not <Authenticated />. ```tsx "use client"; ...