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

Lease Lost Error

hey guys, currently doing a azure self hosted of convex. I have a migration script to transfer my docs to convex and even basic convex queries crash my revision in my container Commit failed to write to persistence: Your request couldn't be completed. Try again later.: Lease Lost ... Write failed. Unsure if transaction committed to disk.: Lease Lost...

Issue scheduling an internal action from a helper function

I'm using Convex version 1.26.1. In one file I have an internal action defined like this: ```ts import { internalAction } from "../../_generated/server"; import { v } from "convex/values";...

Build error with @blocknote/server-util (local dev)

I need to run the following function in an action: ```typescript import { ServerBlockNoteEditor } from "@blocknote/server-util"; ...

no types generated?

I am trying to follow the simple quickstart (expo) for convex, and I am having issues with seemingly no types being generated for tasks. Everything else seems to be working fine, I see the tasks in my frontend. Anyone know what I am doing wrong here?
No description

Type instantiation is excessively deep and possibly infinite.

I honestly can't understand the reason for this error... can you help me? It works but only the build doesn't work.
No description

React Native with Convex + Better Auth

Does anyone has an example of this implementation ? I am having an issues with connecting Better Auth with React Native

Disabled deployment transferred to paid plan team but still disabled.

How do we get a project re-activated after transferring to a paid team plan?

RAG - update entry Categories or delete entries by Category

Hello Trying to figure out how to get entries by a given category (user defined - ID of category in table) So that if a user deletes a category, it will delete the files associated with it? or set all those to null?...

Getting a warning when reloading and closing tabs (Svelte)

I'm working on a project that involves a good amount of real-time data going in and out. When a user reloads or closes the page, they're often met with this warning that there are unsaved changes. I don't need this warning, and users don't need to worry about any unsaved changes. So, is there a way I can prevent this from popping up? I tried adding an event listener to beforeunload and nulling out the property, but neither of those work. Has anyone run into this before, and is there any way to deal with this?...
No description

Just some small thing I noticed in the docs

Hi, I recently saw the blog post that convex moved to Postgres and just wanted to inform you guys about this section in the docs: "The Convex cloud offering runs on top of Amazon RDS using MySQL as its persistence layer." https://docs.convex.dev/understanding/ ...

I created a post with the free credits when I first signed up and I clicked out of it

When I tried to search for it in the history it was no longer available it was deleted can anyone help me is there a way to retrieve it

Better T Stack, Convex, React Native kCFErrorDomainCFNetwork

LOG WebSocket error: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.) LOG WebSocket closed with code 1006: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.) LOG Attempting reconnect in 1210.974850881775ms...

WorkOS session stays valid, but <Authenticated> / useConvexAuth becomes unauthenticated until reload

Description: I’m using Convex with Next.js and WorkOS following the [Convex + WorkOS setup guide]. Everything works correctly during initial login — useConvexAuth and <Authenticated> properly reflect the user’s authenticated state. However, if I leave a tab open and come back later: • WorkOS session is still valid (user doesn’t need to re-login)....

Functions failing

Our functions are failing with this error prototyping/agent/node:streamMessage Cannot find module '../../../package.json' Require stack: - /var/task/source/5d641091-edf2-4800-8fac-93e8dffe649e/modules/actions/sandbox.js ...

How do i run internalMutations in nodejs?

```ts import { internalMutation } from "../_generated/server"; import { participantEntry } from "../schema"; export const upsertParticipant = internalMutation({...

User not authenticated" error in Convex mutation when called from Next.js API route

Hello! I'm running into an authentication issue when calling Convex mutations from Next.js API routes. I'm getting "User not authenticated" error when calling ctx.auth.getUserIdentity() inside a Convex mutation that's being called from a Next.js API route. However, other mutations that also use ctx.auth.getUserIdentity() work perfectly when called from client components that are wrapped in Clerk's <Authenticated> component. Next.js API route ``` export async function GET(req: NextRequest) {...

images are loading slow

hey guys!! have been using convex pretty much consistently since using convex for hackthenorth last year, however, i realised that the images that were uploaded to the convex blobs have been loading rather slowly!(an average loading time of 2-3 minutes) upload speeds are as expected (as of a normal s3 upload!) not sure if this qualifies as a bug report tho!...
No description

How do I delete projects in convex CLI

Hey everyone, after running npx convex dev and after selecting top run convex without an account (locally) I'm prompted to select a project. While experimenting with convex I've created many different projects that I no longer use. How would I go about deleting these projects so that they don't show up in the CLI anymore? Also, what is the consequence of deleting a project, does the data get deleted along with it as well?...

How do I use Convex in Node.js with a persistent client connection (in a non-serverless environment)

My architecture is as follows: Server 1: Node.js with persistent connection — stores data only (does not read). ----Both servers are isolated from each other.----...

Dealing with images

Hi, do you think, it's the good way to deal with images : ``` import { v } from "convex/values";...