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

Not authenticated after successful sign in request

i dont know the reason for this but sometimes i have a problem that after page reload two problems happen 1. while user having JWT token set auth returns authenticated = false and loading = false. my app tries to sign in because of this 2. sign is successful like you see in the debug log. but auth is not set to true. this happens from time to time but not always. reloading page again fixes it and JWT token is used again...
No description

Problem when login

so when i try to login convex from terminal it always waiting, the site says done but in terminal still waiting
No description

"getManyViaOrThrow" Convex Helper Function Expects 6 Arguments

Relevant Schema: ```ts users: defineTable({ name: v.optional(v.string()), image: v.optional(v.string()),...

Switching convex profiles

how can i disconnect from one convex profile and connect to another one via terminal

skip - works in dev not prod

It feels simple, but I can seem to solve it. I use skip if the userId isn’t defined. Works in dev, errors in prod - seems to be calling the function even thought skip is defined. Simplified it down to: const user = useQuery(api.users.getUser, “skip”); ...

Dumb question: how do I make it stop looking for the sample data?

I installed the convex and tanstack start template. New to both. Every time I npm run dev I see a warning that it can't find the sample.json file which I did delete. How do I make convex stop looking for that?

Crazy high bandwidth usage

Hi All I'm having a real problem keeping under the bandwidth limits. I have a tiny amount of data that is being pulled to produce some dashboard analytics and charts etc. My understanding was that Convex handled the caching and so i didn't expect the usage to be what it is. ...

Returns Validation Error

I added some return validators to my convex queries. I get typescript errors if I don't return all the fields, however there are no typescript errors if I return extra fields. From what I understand, this is not possible in typescript?? However, the problem is I get a runtime error "ReturnsValidationError: Object contains extra field..."...

using Next.js with Convex.dev

any good articles on how to use Next and Convex together I am a bit new to both, I just finished doing the intro tutorial for next.js https://nextjs.org/learn/dashboard-app and can see good use cases for server side rendering. However there are still tons of good use cases for using convex, not sure how to mix the two together...

Convex Auth URL undefined

Any Idea what would cause this when using convex auth and Next app router? The error appears when the user trys to sign in. We get a 500 error code at the /api/auth route. We also have the NEXT_PUBLIC_SITE_URL set and this worked prior. Error: url property passed to convex/nextjs function but is undefined. Is an environment variable not set? If this is intended remove 'url' from the preloadQuery options. Error [ERR_HTTP_HEADERS_SENT]: Cannot append headers after they are sent to the client...

Can a Convex project can route exceptions to multiple Sentry DSNs simultaneously?

https://docs.convex.dev/production/integrations/exception-reporting Documentation shows a Configure Sentry popup that seems to have a single field for the Sentry Data Source Name (DSN)....

Working on importing/migrating from another database

I'm just starting to experiment with migrating data over from Postgres. I see that "each row's entries are interpreted either as a (floating point) number or a string." Got it. However, when I do the import (csv), every value ends up in convex with quotation marks around it. This is messing up my boolean fields. How can I find/replace/update all rows/fields where I have a boolean so that it removes the quotation marks?

Offline Mutations

Hello! I was experimenting with the convex-next.js sample and noticed something: when I switch Chrome to offline mode and send a few messages, the mutation doesn’t throw any errors. When I reconnect to the network, the messages are sent as expected. I understand from the docs that Convex automatically saves these messages. However, is there a way to know if my mutation has been cached for later/retry? This would help prevent users from accidentally triggering the same action/mutation multiple times while offline or experiencing bad network. Sorry if i missed it in the docs, but I can't seem to find any recommendations....

Custom domain on Convex Auth

Hi! I upgraded to Convex Pro to get a custom domain working on my OAuth providers. I've completed all the steps described here to use a CUSTOM_AUTH_SITE_URL, but I still see the long url "....convex.site" that doesn't appear trustworthy to users. Any help? I applied for Google verification, but that process takes a long time so I would appreciate help in the meantime!

Push id of a newly created document to another on creation

My schema looks like this: ```ts boards: defineTable({ title: v.string(), users: v.array(v.id("users")),...

const { isAuthenticated } = useConvexAuth(); does not refresh in React Native

Hey convex people, It would be very much appreciated if we have a guide for convex auth on react native. By guide, I mean the middleware setup for _layout files and handle the navigation properly for file base navigation in react native. It will go a long way to improve the structure of our apps because I have just been winging it and it doesn't feel right. Lately, const { isAuthenticated } = useConvexAuth();...

Running into some cryptic error. Help needed.

I am running into some error. This is on React 19, Nextjs 15 and all latest Convex. Has anyone seen this?
No description

How does convex provide for multi region?

If we have core users across multiple continents, is Convex able to be configured to cache at edge near clients, or to optimise for certain geographies. With the request times from dev apps running in AUS, it seems like convex servers are running only in US (just a guess based on round trip ms)

Pricing for high fan-out + high cache hit use cases

Hey folks, I recently started experiment partially moving a project of mine to use convex and I'm a bit reluctant to fully move over due to the pricing structure. We are building realtime-ish online game rooms (think e.g. Poker) and have tried many technologies to globally share the game state (manual websockets, SSE, supabase realtime, and most recently convex) and Convex has been the most compelling option by far but it feels slightly unfair that each user connected to the game room (in the case of Poker that's 9 users all getting the exact same game state) gets charged a full function call despite it being cached by the first client to request it. Are there any plans to revise the function calls pricing model around these high fanout high cache hit use cases?...

Backtick v/s double-quotes in table records?

Hi everyone! I’m trying to export some records from a Convex entry for testing/debugging purposes, and I’ve run into a formatting issue that I need some clarity on. Here’s what’s happening: - I used the right-click "Copy" option to get the data to my clipboard, intending to paste it into my IDE for inspection. - I expected the data to be JSON, but it seems there’s a difference: some text fields (generated using text interpolation at creation time) are stored in a backtick-encapsulated format rather than double quotes. ...
No description