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

open-source

announcements

Text Search is hard to use

Two pieces of feedback: 1. The docs don't teach useStableValue or (less good imo) useStableQuery, don't link to https://stack.convex.dev/help-my-app-is-overreacting (which is long though), so creating a search interface is not straightforward without results flickering. 2. Now that search changed from prefix to fuzzy, it no longer fits super well the use case of looking up people by name (or room by name etc.), because irrelevant results are still returned. This could be alleviated (even if it's not the ideal fix) if the docs gave a recipe for computing the relevance score on the client side (or some measures resembling the relevance score)....

Resend, Email verification/login not working?

```log Enter email in form and submit [verbose] 2024-10-29T22:57:48.222Z [ConvexAuthNextjs] Begin middleware for request with URL http://localhost:3000/api/auth [verbose] 2024-10-29T22:57:48.222Z [ConvexAuthNextjs] Proxying auth action to Convex, path matches /api/auth with or without trailing slash [verbose] 2024-10-29T22:57:48.223Z [ConvexAuthNextjs] Fetching action auth:signIn with args {"provider":"resend","params":{"email":"Nlaakald@gmail.com"}}...

Uncaught Error: The arguments to a Convex function must be an object. Received: skip

Using convex-react-query, I noticed there is a new skip arguments that can be used to disable a query when the arguments is not available yet. But I get this error: Uncaught Error: The arguments to a Convex function must be an object. Received: skip. Which means the convex client complaining about the args. Looked at the code and normally the query shouldn't run at all. Any idea? Maybe I understand it wrong. My code: ```typescript export function useGetDocument() {...

[Convex + Clerk + Next.js] Cant make static routes

In order to make Convex + Clerk work I need to pass useAuth() to the ConvexProviderWithClerk. This only works if I make my ClerkProvider dynamic with passing the dynamic prop. This makes it impossible to render a page statically in my Next.js app....
No description

Patching convex-helpers package

I'd love to add a new type of Zod Id (similar to Zid but our own custom Fid) to my schema and have it work with zodToConvex. I'm wondering what the easiest approach would be and whether there are any docs on how to add a patch to the helpers package

Authentication in Remix Loader with Convex Auth

I'm using Convex and Convex Auth in a Remix app, and I want to check if a user is authenticated in a Remix loader to redirect unauthenticated users to the login page. I'm trying this: ```export const loader: LoaderFunction = () => {...

custom guest auth

Hi everyone, I want to do a custom guest auth with convex. Basically, the user inputs their name and they are logged in. The way I was thinking is I will create the user's account in db and a token for log in. Not sure how can it work with convex. Can someone help?

How to self host convex on docker container?

Hi everyone, I'm building an internal web application that won't be available to the public. I want to self-host the convex server on a Docker container. Is this possible? Also, I wonder how the Dockerfile will look and how the serverless part really works. I couldn't find much on the internet, would appreciate any help 🙏.

Missing environment variable `JWT_PRIVATE_KEY`

Trying to log in with google or magic links i get this error. The error only happens in prod, dev is fine with both google and magic link. Though users gets created but the isAuthenticated is false.
No description

OpenAi assistant vision - stored image url

Hi! I am trying to use an image, that is stored in Convex, with OpenAi Assistant vision. Using the image url, i am getting an error from openai "Uncaught Error: 400 Invalid 'content[1].image_url.url'. Expected url to end in a supported format: jpeg, jpg, png, gif, webp.". ...

Convex client queries .doc() returns Generic document but Convex Functions deploy with success

Im using convex ents, almost every convex functions have type error because of this, at this point i have the code is pretty huge and im not sure what is the source of this issue.
No description

Can actions actually return a value?

The documentation is not very clear about whether actions can have a return value or not. If they can't, I'd apprecaite it if the documentation could acknowledge this clearly. If they can, I'd appreciate a clear example showcasing how to do this. For example, I would like to have this kind of action. ```typescript...

Does convex support typescript 5.6?

Getting the following error on npx convex dev:
[ERROR] No loader is configured for ".tsbuildinfo" files: convex/tsconfig.tsbuildinfo
[ERROR] No loader is configured for ".tsbuildinfo" files: convex/tsconfig.tsbuildinfo
...

Server ErrorUncaught Error: Uncaught TypeError: "pkcs8" must be PKCS#8 formatted string

I keep getthing this error when I try to sign in with convex auth "Password"
Server Error
Uncaught Error: Uncaught TypeError: "pkcs8" must be PKCS#8 formatted string
Server Error
Uncaught Error: Uncaught TypeError: "pkcs8" must be PKCS#8 formatted string
...

Issue with Canceling a Scheduled Task – How to Retrieve and Pass Task ID to Frontend

I'm trying to implement a feature where users can schedule a deletion task and cancel it from the frontend, but I'm getting TS errors trying to return the taskId from a mutation: ```ts export const scheduledDelete = mutation({ args: { id: v.id("thing") },...

Can I use Tanstack Start Without react-query

I wish to know if its possible and Ok to use tanstack-start with Convex directy without react-query . Or is react-query a must for this combo

Schema validation succeeds when adding a non-optional field to a union variant

Let's say I have a table like this: ```ts defineSchema({ my_table: defineTable(v.union(...

Github Authentication issue with React Vite

I'm using convex auth with React, and I'm having an issue that hasn't occurred before with next.js I'm trying to log the user object, but it's returning null, and the functions of store and view don't appeared to be not working as well? here's some code snippets: in Main.tsx...
No description

Basic Auth for log stream webhook

Currently when configuring log stream webhook, it only accepts a URL without any options to add auth related info for this endpoint. It would be great if we can provide basic auth information when adding this endpoint. The workaround is to include auth info in the URL which is not secure.
https:username:password@domain.com/path
https:username:password@domain.com/path
...
No description

Setting Up Convex Auth In Mono Repo

Hi everyone, I’m struggling to implement a basic email/password signup flow with email verification and password reset functionality using Convex Auth in my monorepo. The documentation has been quite unclear, especially regarding the concepts of flows and providers, making it difficult to follow. Could anyone guide me on how to create a straightforward account creation and signup process? Any tips or examples would be greatly appreciated!...