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

Error handling

So i keep getting this error Error: [Request ID: 6426ebc90bdc92f8] Server Error Uncaught Error: InvalidSecret at ConvexHttpClient.action (C:\Users\alier\buddytracker.next\server\edge\chunks_05d7e176..js:12348:23) at async proxyAuthActionToConvex (C:\Users\alier\buddytracker.next\server\edge\chunks_05d7e176..js:22512:22)...

Private mutations and queries

Here's a revised version of your text with improved grammar and clarity: --- I've been trying to make mutations and queries internal so they can only be used in my Next.js API routes....

how can I call these actions inside crypto verifySecret function?

``` "use node"; import { action } from "./_generated/server"; import { v } from "convex/values";...

Workflow retry from step

Hi all! I’ve been working with workflow component and building a multi-step process. I'm curious about the journaling and retry mechanisms. For example, let’s say I have 3 actions:...

Too many reads in a single function execution (Mutation)

I'm getting this error in a mutation while attempting to delete records in a loop with below code: ``` await Promise.all(data.map(async obj => { await ctx.db.delete(obj._id); }));...

Concurrent WS Open connectins

I'm building an app that may have a lot of peoples connections open (aka a game state which they are reading). The concurrent mutations are low but how many concurrent listeners can convex / convex queries handle?

`convex-test` invalid identifier

Given this code: ```ts // messages.test.ts import { convexTest } from 'convex-test'; import { expect, test } from 'vitest';...

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.
Next