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

Paginating Stream Not Working with "Join"

I'm paginating through a convex-helpers stream which I'm using to do a "join" and getting strange behavior where the stream ends early. I'm trying to join both the userWants and userHaves table on their userId and paginate through the results. Here is my query:...

Leftover state detected. This typically happens if there are dangling promises...

Uncaught Error: Leftover state detected. This typically happens if there are dangling promises from a previous request. Did you forget to await your promises? Uncaught Error: Cannot invoke syscall during module imports at handler (../../../../convex/collections/storage/documents/actions.ts:154:27) I got this error message when I call an action(node) multiple times. It works if we call it once tho... I don't know how to debug this. Anyone can help?...

Type safe environment variables

Is it possible to get type safety for environment variables, so that my app only builds if I have added all required environment variables to convex, similar to T3 Env for regular next.js/vercel deployments?

Show user's pending offline mutation(s)?

If a user does a mutation while offline, how does Convex handle that mutation? Let's say this app functions similarly to Instagram where you make posts to a timeline. My understanding is that Convex will store the mutation and post in-memory, then keep retrying the mutation until the user is back online. If my understanding correct? If it is, then is there a way to give the end user more control over, or at least visiblity into, these pending mutations? For example, the user is able to make a post even if they're offline, and on the UI it displays something like "3 posts pending a network connection. Would you like to retry now or Discard Changes?")...

Using Neverthrow with convex

I am trying to add neverthrow to my convex functions to get type safety, but when i add ok({hello: "world"}) in a mutation, i get an error complaining about the fact that convex does not accept the type. Is there any way to add neverthrow to my mutations? And if not: What is the suggested way for getting type safe errors in convex?

When to use clerk over convex auth

It seems to me that convex auth is a really powerful auth library, it is nice to keep everything in one codebase, it does not seem complex to set up and it is cheaper than clerk if you want sessions that are longer than 7 days. What are the reasons for chosing clerk over convex auth?

Convex -> Live Website Help

Hello! I just found out about convex chef, I don't know anything about coding but some HTML and lua. I am trying to create a photography website, and i turned to chef as I could describe what I want and not have restrictions on existing website hosters When I finished making my website, I downloaded the code files, and I need help putting these files to make a live website. I tried asking chatgpt for help and i just got really frustrated so I will turn to the community since human knowledge and experience is better :)...

When is it coming to EU?

I have searched the history about the Europe question but isn't clear what's your roadmap on this. I have read that we couldn't expect it in 24 Q3 or Q4, perhaps later but we are 25 Q2 and my question is can you at least give an estimate when you'll have data in the EU? Latency wise EU would open up a great market further east too. Or do you think it's not an issue? Anyone with experience about the UX from EU?...

Prod File Storage preview not working

I am facing an issue on my prod environemnt with the preview function of the files. When I hover over the download button which opens a preview tooltip, I get a 400 (Bad Request) error (see screenshot).
No description

how can I implement username/email and password auth?

I also want to allow users to enter username in email field while sign in or sign up

repost: index not found error even when the indexes are defined in the schema

I am unable to use "by_user_id" index which I've defined for a table, attached are the error message along with the package.json file, and only I am getting this error among my team. I'd really appreciate any resolution for this issue....
No description

partial convex DB record retrieval

Hi, is it possible to (manually or with flags) to customize how the records are fetched from the Convex DB? I have 2 fields that I would like to omit when the record(s) is/are returned. Is it possible in current implementation? If not, are you considering to add such functionality? If you do, do you have an ETA?

Issue with Convex functions Upon start

Upon each start for the last 2 hours on my project i keep getting Convex failed to start errors and when asking Chef to fix he is unable cause all Type Script check functions fail and a lot of times we fail to push to convex, please need help and andice as I lost time, money, and the ability to preview my project completely.

Array vs. Reference Relationship Performance

I'm looking to migrate to Convex from MongoDB. From what I've read in the docs, Convex leans more to the normalized/relational way of storing data. MongoDB is on the totally opposite side and is denormalized with no built-in relationships. Coming from this background I have a question: If I have a one-to-many relationship, should I put an array of child ids in the parent document, or put a reference to the parent document id in the child document? The aim of my question is toward performance, not necessarily DX wins/loses. I'm newer to Convex, so feel free to add as much context as you can for the new guy....

Local development environment - automate admin api key for dashboard?

We're setting up our local development environment for convex. We're planning on using convex locally for development, and then convex cloud hosting for our integration and production environments. Right now everyone is having to manually grab their Admin API key and enter it in for their dashboard. Is there a way to automate this?...

vercel deployment issue: The Edge Function "middleware" is referencing unsupported modules

Hi there, was hoping to use convex for data/auth for a small project but i keep getting this error : Error: The Edge Function "middleware" is referencing unsupported modules: - vcns__/0/middleware.js: @convex-dev/auth/nextjs/server ...

Experiencing "Invalid verifier" error with Google OAuth in Convex Auth

Experiencing "Invalid verifier" error with Google OAuth in Convex Auth I'm facing an issue where the user session doesn’t persist after a page refresh when using Google OAuth with Convex Auth. The authSessions table remains empty, and I’m seeing an "Invalid verifier" error in the Convex logs. Here’s my Convex backend configuration: Environment Details...

Transient error while executing action

Hi, in a "use node" runtime action I am using the Vercel AI SDK to make an AI generation that involves vision with Gemini models. Given >15 pdfs as input to the model the action sometimes fail and all I see in the console is Transient error while executing action. This error does not even trigger a try/except block, so I can't even implement fallbacks in my application. What should I do?

Trying to deploy a nextjs + convex auth app to vercel, middleware edge issue

Hi there, was hoping to use convex for data/auth for a small project but i keep getting this error : Error: The Edge Function "middleware" is referencing unsupported modules: - vcns__/0/middleware.js: @convex-dev/auth/nextjs/server ...

Your request couldn't be completed. Try again later

I am new to Convex, and I was enjoying it until I stumbled accross this error. This has frustrated me for hours now, please help: ✖ Error: Unable to push deployment config to https://outstanding-viper-371.convex.cloud ✖ Error fetching POST https://outstanding-viper-371.convex.cloud/api/push_config 500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later. Failed due to network error, retrying in 315.58ms......
Next