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

ConvexAuth error when shouldHandleCode is false

```js function InnerApp() { const { isAuthenticated, isLoading } = useConvexAuth(); const locale = window.localStorage.getItem('locale') || 'zh'; useEffect(() => {...

Need help deploying Convex project to Vercel

hitting this issue in screenshot I followed the docs for vercel in convex and changed the build command but I still get the error...
No description

Does the rag component mix text search/bm25 and vectors or just vectors?

Need to know if I need to build my own text search to work alongside the rag

Support faceting on full-text and vector search

Would remove the need to use a solution like Algolia or Typesense

batchCount doesn't seem to exist in aggregate?

I'm using
"@convex-dev/aggregate": "^0.1.24"
"@convex-dev/aggregate": "^0.1.24"
. When I query an aggregate... ```const counts = await userAggContact.batchCount(ctx, { queries: [...

The Convex site causes an “aw snap” error code 11 on my laptop

It fails on the dashboard and the docs pages. It renders briefly before failing. The pricing page works ok, as does the Convex for Startups page. There’s a CORS error on the GT America Standard Medium font....

Faking IDs when writing tests

I am trying to write tests and one of the tests requires mee to have a refrence to an image, but i do not need an image. Is there a way to fake IDs?

No JWT Token when using better-auth with Next.js SSR on login

I am using better-auth component for authentication, i have protected routes in /dashboard which only allow authenticated users to access. I am using the following wrapper to handle this ```tsx import { redirect } from "next/navigation"; ...

usePaginatedQuery results are odd when "skipped"

I just noticed that my paginated results are indefinitely loading when I pass the "skip" as the argument... I am not sure if this a bug or if its the expected behaviour. ```ts interface GetPaginatedCampaignsQueryArgs { branchId?: Id<'branches'> | null;...

Import mock data including _id

I’m attempting to populate my convex db with mock data and that will have to include the _id fields so that I can create the relationships between documents. I can see that _ids are base 32 strings (mixture of lower case letters and numbers) but sticking to that format still results in the import telling me “invalid _id”. How can I generate my own valid ids?...

Using a custom step context inside workflows

Just like there's a guide for creating a custom ctx inside Convex functions, I was wondering if there's something similar for workflows, where we can potentially pass authenticated user context from the function that starts the workflow into the workflow step

Unable to develop locally

- npx convex dev ```ts ? Welcome to Convex! Would you like to login to your account? Start without an account (run Convex locally)...

I want to run a custom test query like this:

import { v } from 'convex/values' // <-- Doesn't work export default query({ args: {indexName: v.id("table2")}, handler: async (ctx, args) => {...

Convex is locked after trying to clear table in dev environment

For some reason after I tried to clear table convex dashboard keep reloading and record still there. I cannot push any deployment or do anything else. any help?

Tanstack Start protected routes with Convex-Auth

Here’s a concise message you can post in Discord: Hey all — I’m using TanStack Start with Convex + Convex Auth and I’m trying to: Protect routes server-side (beforeLoad) and redirect unauthenticated users....

R2 Environment Variables Issue / Project Structure?

Hello all, First of all thank you for taking the time to read this, and I am not 100% sure of the cause of this problem, and have spent more hours than I would like to admit hunting down the cause, and I am honestly not too sure. ```...
No description

WorkOS token refresh breaks Convex

Hi, I've got a NextJS app where when the token from WorkOS effectively is refreshed, the Convex connection stops working until I do a refresh of the page. If I browse between items on my navbar, it doesnt work, and convex simply says 'Convex auth - getUserIdentity returned: null and 'No identity found - user not authenticated' Is this a known issue and does anything have any immediate gotchas that I should look at?...

signIn started to error out

hi all, im using convex auth for the sign in and it started to error out the past few days. has been working like a charm in the past ```Sep 21, 19:41:02.850 failure 62ms...

convex-rag with openAI throwing error

9/22/2025, 3:30:37 PM [CONVEX A(knowledgeBase:processDocument)] [ERROR] 'Error processing document:' { [Error: 400 Only the /chat/completions API is supported] status: 400, headers: Headers { 'content-length': '43', 'content-type': 'text/plain;charset=UTF-8', date: 'Mon, 22 Sep 2025 12:30:36 GMT', via: '1.1 Caddy', 'x-convex-usher': '1' }, requestID: null, error: undefined, code: undefined, param: undefined, type: undefined }
9/22/2025, 3:30:37 PM [CONVEX A(knowledgeBase:processDocument)] [ERROR] 'Error processing document:' { [Error: 400 Only the /chat/completions API is supported] status: 400, headers: Headers { 'content-length': '43', 'content-type': 'text/plain;charset=UTF-8', date: 'Mon, 22 Sep 2025 12:30:36 GMT', via: '1.1 Caddy', 'x-convex-usher': '1' }, requestID: null, error: undefined, code: undefined, param: undefined, type: undefined }
not sure why? ...

LLM Tracing

Has anyone been able to use langfuse or any LLM observability tool with convex? We wanna use convex for a new product at my company but LLM observability is very important