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

Convex stopped updating functions and schema, with no error shown

Hello guys, up until two days ago, convex dev server was correctly updating with my changes but these last two days, it seems like my server doesn't get updated and doesn't respond to schema or functions changes.

Convex Triggers + Aggregates Pattern Question

We're using Convex triggers with TableAggregate to maintain aggregated data. We're encountering a pattern issue with mixing direct DB operations and trigger-wrapped mutations. Setup: ```ts // itemsTrigger.ts...

Are there performance problems?

I got some client feedback that there are some crazy performance problems. As I’m in Thailand right now I wasn’t sure if it’s my connection or convex. I had problems today with the dashboard but also generally fetching data. So do you guys got some problems too? I checked already both vercel and convex status page there is nothing. ...

Strange Table Corruption on Database Import?

I'm attaching a markdown report of the problem, analysis, research and findings. I think I can work around it, by creating the separate table (teams) and just removing (orgs), but would be nice to know what is causing this issue and how to avoid / fix it.

Convex Deployment Frozen after Aggregations clearing

After running this: ```js export const clearAllOrderAggregations = migrations.define({ table: 'orders',...

Can't delete my Convex account

I'm trying to delete my Convex account but getting the following error: POST https://api.convex.dev/api/dashboard/delete_account 500 (Internal Server Error) ```...
No description

Workflow typings not being generated

I just updated my convex and workflows package and now it seems none of my workflows have typings being built for them? They all show up in the convex dashboard so i know the code works just fine... Any ideas what is going on? Versions: @convex-dev/workflow: 0.2.6, convex: 1.26.2,...

Augment Code + Convex?

I was trying to use augmentcode + vsc and it seems to struggle far more than cursor did. Cursor seems more reliable of a solution. I dont see any particular reason why augment would be struggling, it seemed to be missing types regularly, adding a lot of (as any). It was just weird....

Best way to send the cookie response to my convex instance after successful authentication

following here: https://docs.convex.dev/platform-apis/oauth-applications I've implemented successful auth and saved the last access token as a cookie, what's the best way to save it so i can use with convex auth to authenticate users/teams? I know that I can use convex.setAuth(access_token) but not sure if it even worked! I also used the middleware from convex-auth to implement it 😅 ```ts const isSignInPage = createRouteMatcher(["/start",]);...

import.meta not supported - calling helper fn

I'm getting import.meta not supported error when trying to run this: ```ts // convex/tasks.ts export const deleteTask = mutation({...

Inconsistent behavior with Convex Agent Text & Vector Search

When I try to search for messages using the generate text or stream text functions, I receive an error stating that there are no messages to search. However, when I call the fetch context message function, I can search for messages. I'm wondering what's going on or what I might be missing. Error --[Error: No messages to search] ```ts...

Uncaught Error: Unauthenticated at handler

I'm using NextJS with Clerk. Every time I do logout with the Clerk <UserButton /> I get this error: Uncaught Error: Unauthenticated at handler. It happens in one screen where I'm making a query, what I imagine it happens is that in Signout I lost the session, and the query is there trying to fetch data, and it fails, but I'll expect the redirect to happen first. Is there a way to fix this?...

Query workflows and steps from the component database

Until there is an "official" convex workflow dashboard, I want to build a small UI myself to see which workflows are running or have finished. What is the recommended way to build queries for the components database?...

how to manage larger convex codebase

Initially my Convex codebase was small and beautiful. Then the codebase grew and grew. I tried to split the functions by table like ``` users...

fetch failed when run action

running action in vps, node v22.15 , and always get this error
TypeError: fetch failed at node:internal/deps/undici/undici:13510:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ConvexHttpClient.action (file:///app/apps/discord-bot/build/index.js:2367:22) at async checkRunningAutoRaid (file:///app/apps/discord-bot/build/index.js:153946:22) at async file:///app/apps/discord-bot/build/index.js:153520:34 at async dispatch (file:///app/apps/discord-bot/build/index.js:97870:17) at async cors2 (file:///app/apps/discord-bot/build/index.js:99424:5) at async dispatch (file:///app/apps/discord-bot/build/index.js:97870:17) at async file:///app/apps/discord-bot/build/index.js:98742:25 at async responseViaResponseObject (file:///app/apps/discord-bot/build/index.js:97750:13) { [cause]: AggregateError [ETIMEDOUT]: at internalConnectMultiple (node:net:1122:18) at internalConnectMultiple (node:net:1190:5) at Timeout.internalConnectMultipleTimeout (node:net:1716:5) at listOnTimeout (node:internal/timers:583:11) at process.processTimers (node:internal/timers:519:7) { code: 'ETIMEDOUT', [errors]: [ [Error], [Error], [Error], [Error], [Error], [Error] ] } }
TypeError: fetch failed at node:internal/deps/undici/undici:13510:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ConvexHttpClient.action (file:///app/apps/discord-bot/build/index.js:2367:22) at async checkRunningAutoRaid (file:///app/apps/discord-bot/build/index.js:153946:22) at async file:///app/apps/discord-bot/build/index.js:153520:34 at async dispatch (file:///app/apps/discord-bot/build/index.js:97870:17) at async cors2 (file:///app/apps/discord-bot/build/index.js:99424:5) at async dispatch (file:///app/apps/discord-bot/build/index.js:97870:17) at async file:///app/apps/discord-bot/build/index.js:98742:25 at async responseViaResponseObject (file:///app/apps/discord-bot/build/index.js:97750:13) { [cause]: AggregateError [ETIMEDOUT]: at internalConnectMultiple (node:net:1122:18) at internalConnectMultiple (node:net:1190:5) at Timeout.internalConnectMultipleTimeout (node:net:1716:5) at listOnTimeout (node:internal/timers:583:11) at process.processTimers (node:internal/timers:519:7) { code: 'ETIMEDOUT', [errors]: [ [Error], [Error], [Error], [Error], [Error], [Error] ] } }
...

Discord bot

Hi, I'm tryna build an app that syncs stuff to my discord bot for roles, are there any specific things i should keep in mind like compilation settings, tsconfig stuff? Here's the current tsconfig I'm using ```json { "compilerOptions": {...

_id or separate "pkey" ID

tl;dr: Is it best practice to use a custom field (generated with UUID) as primary key, or use the built in _id that is generated. Context: Right now, I have a collection of tables: users, documents, documentFragments etc. Each have their own unique "primary key", so for example, in the users table, I have a field userID, in the documents table, I have documentID, etc. ...

Monorepo template is not working

Setting up... ✔ Added the latest Cursor rules to the project. npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree...

Trigger on agent component tables

Hi Convex team, I'm working with agent component but running in some problem, the problem is because the tables are maintained internally, I'm not able to use trigger with type safty ```...