Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the fullstack TypeScript platform for developers and startup founders.

Join

support-community

show-and-tell

general

self-hosted

announcements

cron:purge error

Hi, I was checking my logs today and I see (image attached) crons:purge - Your request couldn't be completed. Try again later. I have one cron that runs nightly so presumably these error messages have been going on since yesterday night. My cron shows scheduled and I have no idea how to stop this or fix this, I haven't changed anything in my crons or actions and all other cron executions have been successful:...
No description

any recommendation on how to store PII?

hi there, im planning to store some PII in the db. while i think convex's architecture is secure, im afraid of getting myself compromised and having attackers peek into my table. hence, im considering storing some sort of encryption key on a 3rd party provider (maybe aws or railway). does that make sense or im overengineering stuff?

`convex dev` can't reach server

I'm on windows with WSL, this was working fine a few hours ago. Now it's not able to deploy my changes. And it's not unique to this project, I have another that times out and keeps trying like this. I am able to browse convex dashboard, and I can run other commands that access the network so it's likely not a connectivity issue.
No description

r2/actionRetrier cleanupExpiredRuns cron job stuck at loop

I'm noticing this message repeatedly appearing in the logs, and it seems to be originating from r2/actionRetrier. @erquhart
No description

Typescript inference help in monorepo

I have a typescript type created using the convex/values schema validator and turned into a TS type using the Infer helper but it seems to be having issues inferring it. I have a monorepo setup using turborepo and it is inferring correctly when i hover directly over the type in the backend package (1st image) but it seems to lose that inferance and becomes type any in my app (2nd image). Any ideas? Is this a limitation of convex/values because I also tested with a very simple type it seems to work crossing package boundaries but not this complex type. Thanks for the help! ```ts export const VGetMessageDetailReturn = v.object({ ...omit(Messages.withSystemFields, ["linkedMessages"]),...
No description

One large table vs many small tables

Hi all! I was wondering if anyone did any performance benchmarks between having many (100s) of small tables vs having a single large (millions of rows) table. If there are any articles on this I'd love to read, or if anyone has any insights or recommendations on the topic. Thanks in advance!...

Validator record types with literals as keys.

Is it possible to create convex validator types such as
type player = Record<"str" | "dex" | "int", number>
type player = Record<"str" | "dex" | "int", number>
There is a record type in convex but I'm running into schema validation issues when using literals as keys instead of strings....

getUserIdentity returning null on certain page but not on home page. Using Convex with Clerk.

Hello, I am using Clerk auth with Convex and am accessing Google Calendar events. On the home page, I have a Calendar component that executes a listCalendarEvents action in my google.ts backend file. This function calls getUserIdentity to retrieve the user_id and pass that into the getUserOauthAccessToken function to retrieve the access token. This Calendar component is wrapped in the Authenticated component as follows: ```...

Can't get my functions to fire from React native with Expo and Clerk

I don't have any type errors, I can see my functions on the dashboard, every before the mutation line works but fails can't get past this line, the function call does not work I don't see any errors, please help ```const handleDone = handleSubmit(async (data) => { // Create a new main budget if we haven't already if (!createdBudgetId) {...

✖ TypeError: fetch failed

Retrying request (attempt 6/6)... ✖ Error: Unable to run schema validation on https://giddy-hyena-745.convex.cloud ✖ TypeError: fetch failed Failed due to network error, retrying in 528.35ms... ⠸ Preparing Convex functions......

LLM Docs

Anyone know if there are llm friendly versions of the docs?

Too many reads in a single function execution (limit: 4096)

I am getting below error for the first function that I am sharing below, I could not find the reason since all functions inside the function use indices. Can someone help me spot the problem? Error: Too many reads in a single function execution (limit: 4096). Consider using smaller limits in your queries, paginating your queries, or using indexed queries with a selective index range expressions. ...

Granular RLS (e.g. oldDoc/newDoc)

Using rowLevelSecurity from convex-helpers, is it possible to set up granular permissions based on e.g. the kind of modification being made? Similarly to how triggers have change.oldDoc and change.newDoc For example, if you have role = "user" | "admin" on the users schema and write an RLS rule such that a user can only modify their own document - wouldn't a user be able to change their own role to admin? What's the best approach to granular RLS?...

issue with creating users in covex connected with clerk

hey guys i need help i have issue i dont know why when i login with email it shw ervything fine but when i go convex data / users i dont see users created but when i send feedback msg it show in data just issue with users i have trired eveything and i failed

Convex Storage Triggers

Can Convex triggers be used for storage (i.e. run a function when a file is created)?

npx convex dev watching files not inside the convex/ directory

when using lingui macro in constant.ts file inside the project but not inside the convex directory, it still make npx convex dev got errors, because it is also watching the constant.ts file

Searching two columns

Trying to find a way to search by two columns, with pagination. withSearchIndex works, when we look for one column but I need to search inside 2 columns. Do I really need to pull the whole table, then filter the data? Have a search box, and it needs to pull from users table a result for their name and/or email....

Prod deploy mysteriously failing with 400 Bad Request: UnexpectedAuthHeaderFormat

I was able to successfully deploy my project on Vercel when I last changed it on 5 Mar 2025, but I made a frontend change today (no Convex changes) and the convex deploy step is now failing with this error:
400 Bad Request: UnexpectedAuthHeaderFormat: Unexpected auth header format. If you are trying to use preview deployments, please generate a new key in the Convex dashboard.
400 Bad Request: UnexpectedAuthHeaderFormat: Unexpected auth header format. If you are trying to use preview deployments, please generate a new key in the Convex dashboard.
...

callback, 3rd party authentication, convexAuth

I am running into a problem with Figma Oauth 2.0 callback which returns with ?code=&state= appended to the return URL. Now, the ?code part of it is getting consumed by ConvexAuth. I'd love some help on getting around it. I edited my middleware.ts to do the following: ```export default convexAuthNextjsMiddleware((request) => { const url = new URL(request.url)...

libuv assertion with Convex Auth and Node.js 23.10 on Windows

I'm following the Next.js quickstart with npm create convex@latest. Everything was working, including npm run dev, until I followed the Convex Auth setup instructions with npx @convex-dev/auth. Now, npm run dev always fails with: ``` D:\GitHub\mysterious_convex_things>node --version v23.10.0...