Convex Community

CC

Convex Community

Join the community to ask questions about Convex Community and get answers from other members.

Join

support-community

show-and-tell

general

self-hosted

announcements

Uncaught ConvexError: InvalidCursor: Tried to run a query starting from a cursor, but it looks like

Im working on aggregation backfill and i ran it on the first time and it works, but on the 2nd run after i updated the aggregate code (keys & sort keys). I ran into this error.
No description

ConvexAuth - Nextjs - Reset OTP - Password reset

why do I have on my dev server thos log of convex regarding my reset otp and password reset ? Each action on my app I got those logs
No description

Apply generated document id to a non-system field in schema

Hey all! I'm evaluating convex along with a few other services. The promises of convex are very exciting and what drew my attention to it. But I'm getting hung up on the inability to control document schema completely. Here's what I'm trying to do: ```tags: defineTable({ id: v.id("tags"),...

How do I navigate to a foreign key's document?

Seems inconvenient now to click a foreign key and navigate to its parent table. I used to be able to see an arrow in the top right corner. Then that got replaced with a hotkey, like shift + G. Now that hotkey is gone and I don't see an option at all in the selection menu....
No description

Should I avoid this ent query?

This is an example from ents docs: ```ts export const listTeamInvites = query({ args: { teamId: v.id("teams") },...

Using actions in queries and mutations

What is best practice for calling actions that "use node" inside of queries - e.g. fetching data from 3rd party nodejs clients and using that data in return from a convex query? Seems can only call actions using scheduler, but then how can 3rd party data be used in queries / mutations directly?

Error: Convex functions should not be imported in the browser.

My convex server looks like this: ``` 'use node'; import { v } from 'convex/values'; import { action } from '../../_generated/server';...

How to catch too many bytes read in a single function execution error ?

i have a query function that performs multiple queries below. ``` export const queryfunction = query({ ...

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