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

Bad example in docs

In the vector search docs (https://docs.convex.dev/search/vector-search#using-a-separate-table-to-store-vectors), there is the following example: ```ts export const fetchMovies = query({ args: {...

How OIDC with Convex Auth works with HTTP actions endpoints

So when using convex auth, the authorization URL is the convex site URL available via CONVEX_SITE_URL system environment variable. From what I understand, specific endpoints defined by the OpenID spec are expected on such domain/URL (to conform to the spec). Examples of such endpoints are the /token and the /authorize. However, this same CONVEX_SITE_URL is used for HTTP actions, such that if I have an HTTP action at convex/token.ts, then the action is accessible by ${CONVEX_SITE_URL}/token (assuming I have it configured to work that way). Does this not conflict with the /token to be used for auth by convex auth as required by the OpenID spec?...

Running Langfuse for AI tracing inside convex action

The issue I'm having is that I want to run Vercel AI + Langfuse inside a Convex action, so when I visited these docs: https://langfuse.com/docs/integrations/vercel-ai-sdk I leaned towards the Nodejs guide, but that comes with some performance losses on the Convex side (by having to use the use node directive), so ideally I'd use the nextjs guide but I'm not sure how to get that to work with Convex. the founder of Langfuse said:
We have tested the vercel ai sdk integration on vercel (which default to edge functions when using the app router in nextjs afaik) which should be a similar to the cloudflare runtime
...

Passing `ctx` to AI agent tools

I'm currently doing the following inside a convex action: ```ts const result = await createBlockFromPromptAls.run( { ctx: ctx,...

how to use authRateLimits?

I see auth schema has authRateLimits defined and its in docs but not much info available on how to ratelimit the auth e.g. magic emails

Convex Auth user table fields

I've been looking for documentation on this with no avail. Querying the users table strips all the fields other than _createdTime, _id, name, email This is whether I used db.get or db.query. Any way around this?...

ConvexReactClient query() return type?

The docstring (and the type annotation) says the return of query() should be a Promise of the result, but if there's an existing result, it gets returned directly without being wrapped in a promise. Is this a bug? https://github.com/get-convex/convex-js/blob/main/src/react/client.ts#L459...

How do I extend convex auth with my custom auth provider?

So idea is to pass 3 things from frontend
singIn("my-custom-provider", {address, message, signature})
singIn("my-custom-provider", {address, message, signature})
...

Error: [CONVEX Q(documents:getSidebar)]

Please help me why does this error appear? And how to solve this issue
No description

Setting non-auth client context

Is it possible to set some kind of arbitrary client context that is accessible from all functions, similar to ctx.auth? Something I can specify once on the client side, without having to pass it constantly to every function. Or even literally using the ctx.auth and related features, but without a 3rd party identity provider, just as a vehicle to communicate some client state.

Using non-primary GitHub email when signing up for Convex

I just installed Convex in a project for the first time last night and signed in using GitHub. My primary GitHub email address is my personal email, but I also have other domain-specific emails attached to my account, which I prefer to use for specific projects. I'd like to use one of those domain-specific emails with Convex, but it doesn't support changing emails. Could this support be built-in, or when registering with GitHub could it be possible to select which GitHub email address you want to use?...
No description

Service Outage?

Logged on this morning to continue some work from yesterday, and all of my queries are all of the sudden erroring. When I look at the Logs, nothing is getting logged, and I am getting intermittent error toasts saying trying to reconnect to log stream. Anyone else having issues?...

Dynamic table

Is it possible to create dynamic tables in Convex database? I'm building a backend where each user can have their own dedicated 'space' table(for example 'space_userUid'). While the schema would remain consistent across all users, each 'space' table would be unique to the user and would store their notes with columns like title, events, etc. Could you advise on the best approach to implement this?...

Correct pattern for running a query onClick without re-running on re-render.

Hi, newbie in need of advice. Using React(Native), I am taking a document name from a user via a textInput field and onClick I want to check if that document exists. I don't want to run the query everytime the user types something... ``` export default function Home() { const [conversationName, setConversationName] = useState(''); // Updates the component...

Convex 1.14.1 WebSocket InternalServerError

After upgrading Convex 1.13.2 => 1.14.1, I receive a "WebSocket closed with code 1011: InternalServerError" error, after initial user login. If the user is already authenticated, then I don't see this error. This error doesn't exist when using Convex 1.13.2. I'm using custom auth connected to AWS Cognito with <ConvexProviderWithAuth />. Could you please give details of the internal server error that is being raised here?...

sentry errors

Hello these two sentry errors are repetitively reported; 1) ArgumentValidationError: Value does not match validator. Path: .refreshToken Value: null Validator: v.string() 2) Unexpected token 'A', "A server e"... is not valid JSON ...
No description

Hello,

I would like to use github actions to deploy to dev, I normally do it from the cli like npx convex dev. I have created a deployment key in the Convex dashboard for both dev and production and added those as secrets in github. In my github workflow I am adding the key into an env variable like this: ```...

Next.js URL not changing using the documented middleware and ConvexAuth setup

When signing in using password auth, the page changes as expected, but the URL remains the same. Using the documented Convex Auth password setup, when I go to /sign-in and actually sign-in, the tasks page loads, but the URL remains as /sign-in until I refresh. Not sure if this is a bug or user error and I've missed something....

Is there anything similar like ConvexAuthNextjsServerProvider for Remix?

Using something like below with remix is resulting in below warning ```ts import { ConvexAuthProvider } from '@convex-dev/auth/react' ... const { ENV } = useLoaderData<typeof loader>();...

How to handle searching in an existing database where the state field has 2 versions of the text

I have an existing database that I need to search for states and it has two versions NY and ny. Should I convert everything to uppercase and then search?...