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

Typescript Errors with RLS

I'm running into a typescript error when attempting to use convex-helpers/rls. See attached for the full typescript error.

CLI 'convex logs' not working

When i run ```ts āÆ bunx convex logs
Watching logs for dev deployment #####-###-553......

Authentication denied

I am new to convex, and have been using it for a couple of days now. I registered through github SSO. Today, I wanted to deploy a project to production, but I started receiving authentication errors, and now get this message when I try to relogin through my github account.
No description

Sort by number + doing text search

I have a table of an item with a name, and a number field contaiing a score. I want to create logic that will get me all the items matching a specific string for the name (no need vector search, just regular text search is good) sorted by the heights score descending. Is this possible in convex? It is very basic functionlity but I couldn't find it in the docs....

Mutations taking > 20s to complete

This might be related to other websocket issues reported. Creating a separate thread to report issues with the mutations sent over websocket taking very long to complete.

Convex Dashboard for large rows

The performance of the Convex dashboard has significantly decreased as my database has increased in size (a few tables with 1m+ rows). Sometimes I cannot see data through the dashboard at all. The performance of queries that are properly indexed in my app is still very fast. Is this expected behaviour? ...

pagination with filters

How do I do pagintation with filters where the filters need information from ANOTHER table? Imagine Tinder where you have a users table, and a 'swipes' table. And let's say you wanna get only users you have not swiped on....

Long waiting time on Convex Dashboard

Hi, recently I have been experiencing long waiting times to view my data on the production/dev deployments on the Convex dashboard. Is this an issue on the dashboard, or is it an issue with my laptop or connection, as I have tried other laptops in the company and it's still giving immensely long waiting times to view my data on the dashboard

Ordered listings created within the last 6 days gives too many bytes read error

```typescript export const getTopRatedListings = internalQuery({ handler: async (ctx) => { const sixDaysAgo = Date.now() - 6 * 24 * 60 * 60 * 1000; ...

slow preview deployments from Vercel

preview deployment is a lot slower than it was a few days ago. I'm not experiencing this with production deployments. time between "Deploying to..." and "Added table indexes" went from a few seconds to >4m ``` [15:48:25.701] āœ” Ran "pnpm run build" with environment variable "VITE_CONVEX_URL" set [15:48:25.702] - Deploying to https://REDACTED.convex.cloud......
No description

Updating external services with Convex preview url on new preview deployment

I have a staging branch that collects all changes before pushing to main. I am using Vercel to deploy Convex along with my client side code. The application uses service workers hosted on Railway and sort of uses Convex tables as a job queue, so those external services need to update Convex tables. Given that, I currently need to manually update the convex url in my Railway env variables each time I push to staging and trigger a new Convex deployment. When Vercel runs the build command on a new push to staging, the new Convex URL is generated for the preview deployment. Is there a clean way to automatically tell railway "Convex URL has changed to x" during the Vercel build other than waiting for the new preview deployment url to be created, manually updating Railway CONVEX_URL and then redeploying the Railway infra? I can think of ways to do this that would make me sad, but before doing that I was wondering if anyone has an elegant solution, given this is likely a common issue....

Image compression with sharp - Input buffer contains unsupported image format

I'm trying to do image compression. I use sharp which seems to work fine. But there is probably some problem with the convex/node environment I don't understand. The value of buffer keeps changing when I use sharp, even if I use sharp without touching the buffer. - I do use "use node" - I don't import any other code - I use internalAction...

Convex dev fails inside Docker dev-machine with 500 on /finish_push

Hi! šŸ‘‹ I'm running into an issue with Convex inside my dev-machine (Docker container). When I run bunx convex dev, I consistently get this error: ```āœ– Error: Unable to finish push to http://127.0.0.1:3210 āœ– Error fetching POST http://127.0.0.1:3210/api/deploy2/finish_push 500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later....

agent playground doesn't load the returned message from the agent

looks like is not returning the agent response in the list of messages

Action calling an action: "implicit any" error?

Hey all, @erquhart I feel like you'll know this, haha. I have the simplest action calling another action via ctx.runAction. It's throwing the classic "implicitly has type 'any' because..." error, but I'd really like to understand why. (For the record, I have "solved" this by using a helper function, per best practice, instead of an action calling an action. Regardless, I need to understand why this isn't working.) ...
No description

Private LLM - Agent Components

Hi, I am exploring how to use the Convex Agent component for building an AI agent, as outlined in your documentation. Specifically, I want to clarify whether it is possible to define a custom language model in the languageModel parameter of the Agent constructor, using a privately hosted LLM, such as Ollama, deployed in a VPC. Does the Agent component support only predefined models like OpenAI and Grok, or can it be configured to integrate with a custom chat model hosted on our infrastructure? If custom integration is supported, could you give me some guidance or an example of how to implement this? ...

How to show a user as online even if they're not in a room with presence component

As the title says, I want my application to show an online and offline status for users. I also need to handle the specific case where a user is considered online even if they are in the app but not inside a specific room. How can I achieve this?

Dashboard is not loading from Thailand

Is that a general thing or is it just in my case? The site itself is working but the data not. When I turn on a vpn to germany for example everything works fine. And my app is also working without vpn so it seems to me that is dashboard related....

Convex Package.json "exports" in a Monorepo

Every package in a monorepo should specify "exports" in Package.json - so other packages in the monorepo could consume the relevant parts of it. As well as implying if the package should be consumed as built JS files or source source TS code and compiled by the consumer. I am trying to understand what should I export from a Convex package. I've looked in the https://github.com/get-convex/turbo-expo-nextjs-clerk-convex-monorepo example, and the Convex package does not export anything. ...

Using Convex + BetterAuth in a B2B Next.js app

Hi, I’m building a B2B application using Next.js, Convex, and BetterAuth. I have a couple of questions about how to correctly handle schemas and server-side API calls. 1. User & Organization schemas I noticed that under convex/data → betterauth there are already tables created for me, such as:...