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

Can't wrap my head around paginated queries with advanced filters

I have this complex query: ```ts export const listAvailable = protectedQuery({ args: {...

Custom Privy Auth Integration in Convex

i’m running into an issue with my convex setup using privy for authentication and could use some guidance. i’m currently using both ConvexAuthProvider and a custom privy implementation with ConvexProviderWithAuth in my react app. shawn pointed out that these two won’t work together out of the box, and i need to create a custom auth provider for privy. does anyone have any example that i can refer to? im unsure what to implement in the custom auth provider....

"Transient error" happening on every action call

I'm getting Transient error while executing action error on an action that only calls gemini with ai-sdk. Even though it says transient it happens consistently when sending images over 15MB to gemini to read and make an analysis with. I"m not downloading the image in the action or anythin, just passing an imgUrl. I'm using 'use node'. the main issue is that I can't see any additional errors. I'm happy to share all the code necessary or talk with any convex engineer. This is the only related gh issue I found https://github.com/get-convex/convex-backend/issues/179 but no resolution there. I've also see there are other issues here in discord related to transient errors, but in those cases they are fixable via retries. In my case it always happens when I use larger images (but not super heavy really) I'm new to convex, I rewrote my project in it and I'm a paying customer, this is a bummer because I really liked the rest of the things, but I'm lost with this one...

Does CONVEX_DEPLOYMENT change the generated code in any way?

While CONVEX_DEPLOYMENT and a key are required to run convex codegen, if the value is changed, does it alter the generated code? I'm trying to understand under what situations its safe to cache the codegen output. Secondary question: Why is CONVEX_DEPLOYMENT and a key necessary to run the codegen step?...

TanStack Router + Better Auth Setup

hi, i'm setting convex better auth up in a tanstack router vite app. i primarily followed the start docs and only deviated away towards the react docs whenever i couldn't do something server related. for those moments, i mostly guessed so i was hoping someone could proof-read my implementation and see if i'm missing something lol. not using start because i don't need ssr btw. thanks :)

Authentication in rust apps

Hi, are there guides on how to add authentication to rust apps powered by a convex backend?

_generated code track in git or not?

I have a lot of generated code by Convex, do we need to track it in git? If we don't check the generated code in NestJS, we might want to run like Convex codegen before building the Next.js project. Is that a good practice or not? Or we should always track?

Offline development using local deployment

Hi all! I've got a long train journey coming up with spotty/absent internet. Looking to setup local environment to dev against but noticing a few issues 1. while disconnected from the internet convex dev errors with a failed request to Sentry 2. the dashboard is still hosted on a convex domain (which loops back to my localhost). Is there a dashboard UI available locally?...

Proper Validation to getting all data created in the last week with `.withIndex` and pagination

I'm using luxon to do time calculations, and this is first time I've run into this issue, I have a usePaginatedQuery imported from cache provider from convex-helpers with next.js latest, and I'm running the following query below, the userId is coming from the ctx, and the DateTime is coming from luxon, built on top of index, when I add the last gte for the field _creationTime I get an infinite loop on my frontend Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. ...

I’m experiencing problems with Auth and Redirect URI

#support-community I’ve been trying to set up Chef for Days, I got it correct once, started a new project and it just isn’t working, there’s just constant issues with regards to the URI and authentication, I’ve never written a single line of code, it’s possible that the AI agent I’m using as an extension from VS Code may be complicating the whole, please help...

Issues using latest version of @convex-dev/agentin nextjs 15

✓ Compiled /projects/[projectId] in 6.8s ⨯ TypeError: Cannot read properties of undefined (reading 'logger') at useThreadMessages (../../src/react/useThreadMessages.ts:135:38) at ProjectView (components\project-view.tsx:39:37) 37 | id: projectId,...

Bring back fuzzy search

In the recent AMA, it was said fuzzy search wasn't an often used feature, so it was removed. I was personally about to use it in my business's app. If fuzzy search is really a headache to keep maintained, creating a really bad upkeep to use ratio, then I get removing it. However, if it's just "not that popular", then I would really appreciate it coming back. It's one of those features that you don't always need, but sucks to not have when you need it, and it fills out Convex's search functionality nicely....

I'm building a discord bot that's hooked up to Convex database but having issues

Having issues deploying the schema changes to Convex locally and in production. There's really aren't very helpful logs to see what's going on

How to use 'and' conditional for vetorSearch?

The API for vector search filters only provides q.eq and q.or methods, and does not mention support for q.and or combining multiple q.eq conditions with AND logic VectorFilterBuilder API. Thank you very much, and if you can help me with a solution, much better! https://docs.convex.dev/search/vector-search#filter-expressions...

Could not load the "sharp" module using the linux-arm64 runtime

I'm trying to use sharp package and get this error when running bunx convex dev I've tried sharp versions: 0.33.5 and latest, 0.34.4, same result every time. I've configured convex.json in root directory (same as package.json) as: ```json...

Issues when adding additional fields to the user schema in Convex + Better Auth

So I am using the Local Install method to create my schema and setup convex with better auth. I'm following the processes in the guide docs for convex and better auth. https://convex-better-auth.netlify.app/local-install ...
No description

Convex agents, convex/chat.ts: process.env.OPENROUTER_API_KEY is undefined

I have this code in chat.ts, following a Convex Agents tutorial: ```ts import { Agent } from "@convex-dev/agent"; import { createOpenRouter } from "@openrouter/ai-sdk-provider";...

Convex Local Development Dashboard CORS error

I am using convex local development I got this error when trying to access the convex dashboard:
No description

need help setting up airbyte to export data from convex

Hellooo, I’m trying Airbyte for the first time because I desperately need OLAP. But I’m running into what looks like completely broken behavior: - Every destination table contains the entire source database snapshot, not just its own corresponding records. - This means every table I sync ends up being a massive duplicate of the whole source, instead of a clean representation of that single table. - To make it worse, there’s still no normalization happening afterward — everything is kept in raw form....

Convex + Better Auth Local Install Missing API Key (Resend)

After following local install in https://convex-better-auth.netlify.app/local-install, I've been having this error "Failed to analyze adapter.js: Uncaught Error: Missing API key. Pass it to the constructor new Resend("re_123")" during build time, I'm using the actual resend package for auth related emails since I can't use the resend component. RESEND_API_KEY is already in my .env.local as well as in convex cloud envs, When passing the actual api as string it works, when passing env in the build command it works. Problem is I can't do that in prod. Anyone having this issue?...