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

Fetch failed / can't deploy

Somehow since yesterday i got the problem that when running npx convex dev its not working anymore. Fetch failed, is https://url.convex.cloud correct? Retrying... ...

Please Convex Team make the Pro Support team respond Fast!!!!

Hello — I’m following up on pro support ticket opened on sep 16. I subscribed to the Pro plan specifically to get timely help with the issue I described in the Discord thread (link: https://discord.com/channels/1019350475847499849/1416015886246215690). It has been 4 days with no actionable response.

PReventing preloadQuery without auth

I'm using better-auth with Convex + nextjs and seem to be having issues with redirection. I have a simple server component that wraps my routes ``` export default async function ProtectedLayout({...

Intersection of Discriminated Unions

First of all, I love Convex - great job team ❤️ I have a use case where I need to create a convex schema that is an intersection of two discriminated unions. I have the following toy example that works with Zod but I can't see an easy way of implementing the same behavior using Convex. In the example below we start with two unions:...

Using R2 component with S3 credentials

Hey I saw that the R2 component uses S3 under the hood and have tried to set it up with S3 credentials. I don't think S3 requires endpoints so is there a way to omit that or does any one know how to get an S3 endpoint that will work? Loving Convex so far 🙂...

Could not find public function for 'chats:create'. Did you forget to run `npx convex dev` or `npx co

I get this error:
Could not find public function for 'chats:create'. Did you forget to run npx convex dev or npx convex deploy?
I searched for it on this Discord & it goes back to 2023 but didn't find a solution for it....
No description

OAuth works but redirects to Convex domain with “No matching routes found” instead of frontend

I’ve been setting up OAuth with @convex-dev/auth (Google + GitHub). The login flow does work — users are created in the Convex users table and show up in the dashboard. The problem is after authentication: instead of redirecting back to my frontend app (running on http://localhost:3000 in dev), the browser gets stuck on the Convex backend domain (https://grandiose-meadowlark-398.convex.site) and shows only: No matching routes found The network tab shows errors like:...

Serializing int64 JSON request in `/api/run`?

Hey folks, I'm struggling trying to figure this out. If I have a convex query which accepts a v.int64, how am I supposed to serialize my JSON request to that endpoint if I'm using /api/run? I've tried: base64 encoded, serialized base 10 string, array of numbers, json numbers....all fail the check: ```json...

Websocket net::ERR_NAME_NOT_RESOLVED on pagespeed

Hey! I'm currently testing my site on https://pagespeed.web.dev/ and i'm getting this: /assets/index-DQb7AJdK.js:50:17396(mysite.com) WebSocket connection to 'wss://<link>.convex.cloud/api/1.25.4/sync' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED I even tried with a custom domain but still getting the same error. Any idea what could it be?...

Convex code generation where it doesn't give types when I run a mutation / query

I'm running into an issue with my Convex code generation where it doesn't give types when I run a mutation / query. Below would be an example of a query that I would send, but this would always be the type definition. ```ts import { v } from "convex/values"; ...

Error: "Cannot prompt for input in non-interactive terminals"

I'm running the standard commands from https://better-t-stack.dev/new?wd=wrangler&pay=polar&be=convex&rt=none&api=none&db=none&orm=none&au=none&ex=todo&add=&fe-w=next I tried to follow the README instructions and I'm getting an error: ```convex dev --configure --until-success │ ✖ Cannot prompt for input in non-interactive terminals. (Welcome to Convex! Would you like to login to your account?)...

Error Messsage for 'discriminated union' DB update

Hey! I try to insert into a table with discriminated union, and the error details are missing from the log. Anything I can do about it? ...

Major Agent integration errors on my large project

Here is the problem Claude-4.1-opus is telling me Why Adding Convex Agent Breaks Your Types: The Core Issue: When you add ...agent.schema to your schema, the agent component introduces its own tables and type system. This fundamentally changes how TypeScript infers Id types across your ENTIRE codebase....

Convex Codegen produces no api.ts file

When I run npx convex codegen, I receive an api.js file in generated, but no api.ts with config specific to my project. however, I can deploy and convex dev just fine. the issue with this is that any time I make a change in my project to any convex type, I get type errors all throughout my next.js typescript. I have tried everything. clean project, new convex projects, blank folders containing only basic schema, resetting my code config. all of it. Please help.

finishAllScheduledFunctions breaking tests

I'm writing tests for a mutation that does scheduling -> first screenshot Schema -> second screenshot Test -> screenshot 3 The tests fail for obvious reasons when finishAllScheduledFunctions is not called, since the scheduled function is supposed to decrement a value until it's 0....
No description

Forever looping: Finding component definitions...

Whenever I run the convex dev command for my NextJS 15 project its stuck forever loading Finding component definitions... ```❯ bun x convex dev -v ✔ Provisioned a dev deployment and saved its name as CONVEX_DEPLOYMENT to .env.local ...

Field names can only contain non-control ASCII characters

I have a query that returns an object with keys that contain unicode characters and convex returns an error.
Uncaught Error: Field name กิน has invalid character 'ก': Field names can only contain non-control ASCII characters
Uncaught Error: Field name กิน has invalid character 'ก': Field names can only contain non-control ASCII characters
...

Images not showing after migrating to production

Good evening, I've been working with my development, so I decided to step up stuff to production, I successfully migrated my data to production but the images which I've been storing with convex are not migrated I'm still working on it, but any form of advice is highly appreciated...

Is it possible to obtain the direct IPs of our CONVEX_SITE_URL?

Is it possible to know the actual IP addresses behind the CONVEX_SITE_URL? We're integrating with a third party service that need to whitelist them. Thank you for your advice

runtime ArgumentValidationError when APIs expect an Id<"threads">

With @convex-dev/agent@0.2.7, you cannot type threadId as v.id("threads")? Convex’s codegen does not expose components.agent in _generated/api, and the "threads" table is not registered as a first-class TableName?...