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

Visiting a convex.link url is not working

Hi, I am logged in and I'm visitng a convex.link url given by someone to set up a database to my account, but nothing happens. Any ideas?...

Error loading while opening the settings panel

While I was working with convex I am encountering the setting panel loading error . Can anyone help me with this ?
No description

any informations about node.js runtime ?

I've encountered a peculiar issue. When I create an MCP client within an action to connect to an SSE MCP server, after the action concludes, the MCP client persists in the Node.js runtime and continuously attempts to reconnect from an address I never defined. I suspect this is due to the runtime created by "use node". Consequently, I need to determine whether this is a memory leak caused by my code not releasing objects or if it's an issue with the platform. by the way when i add client.close() everything is ok
So far, I've reviewed the documentation, which only mentions the Node.js runtime in two places:...
No description

ShadCN DataTable with Convex

Does anyone have an example or can point me in the right direction of using a ShadCN table using a Convex pagination query with filtering, sorting and ordering, searching... i.e. not client side pagination/filtering/sorting using collect because I have a lot of data to display so I cannot get all the records upfront unfortunately. Thanks in advance.

useConvexAuth().isAuthenticated does not update even though it should on signIn after token expiry

, this happens on an expo app, where I redirect based on the isAuthenticated field status, this works great for first user sign-in, but if the user's token expires while using the app, they get redirected back to the sign-in screen ( due to the live nature of convex, useConvexAuth().isAuthenticated re renders to false) , and when they signIn again, useConvexAuth().isAuthenticated keeps returning false, a weird thing is if I close and open the app again, ( reset the socket connection ) isAuthenticated works automatically and redirects me without me having to sign in, so that sign-in attempt was successful, just isAuthenticated does not update for some reason. The token is also broken as convex handlers using getAuthUserId don’t resolve it...

joi

Hello, I'm playing around with Convex and so far I love it. I'm trying to do something pretty simple but after a few hours I'm still not succesful. Perhaps I'm doing things totally wrong... My schema look like this and I'm just trying to query all the faqs joined with the categories for the name but I can't get my head around this. Could anyone point me in the right direction? I've tried it with withIndex and also had a look at some convex helpers. ```...

Local first

The app that I'm building will eventually be required to use local first sync for offline use ability. My question is, I'm very early in the build phase, so I can easily bake in something like replicache, but would it be worth it to wait for Convex's native solution? How much of a refactor is it expected to take when Convex's sync solution is released? If it is low, I can justify waiting. If it's the same level effort as implementing replicache, I'd rather do that now before the amount of codes to be refactored is too large....

AI SDK giving crypto is not defined error

I am using vercel ai sdk (aws bedrock with sonnet), tried using both node and non node environment. But still I am getting this error
Uncaught ReferenceError: crypto is not defined at hmac (../node_modules/aws4fetch/dist/aws4fetch.esm.mjs:219:4) at signature [as signature] (../node_modules/aws4fetch/dist/aws4fetch.esm.mjs:181:22)...

Convex image compression

Does convex provide any plugin to compress images

How to correctly signOut with clerk

Hi With my app when I use the clerk signOut button I have directly an error from convex as below `Error: [CONVEX Q(services/stripe/stripeSubscriptions:getSubscriptionInformation)] [Request ID: fc436127d0b11665] Server Error Uncaught TypeError: Cannot read properties of null (reading 'userId')...

Convex type errors and modular folder structure

Hi, I just started using Convex and all of the documentation shows that the schema info should be in the schema.ts file. However, my files are starting to stack up and I would like to rather have things be modular having a schema folder with my schema files in it making it nice and clean to add more tables in separate files, however, when I did this I start to get lots of type issues. Such as: Argument of type '"profileId"' is not assignable to parameter of type 'never'. code: // Get links for this profile...
No description

documentation for integrating AWS cognito for Auth and S3 bucket

there seems to be a lack of documentation on how to integrate Cognito and S3 into your convex project. all i found was for Auth0 and Clerk but they are not the cheapest options same for S3 and google cloud storage offering more competitive pricing than Convex. I like the easiness of database of convex so i'm wondering if anyone has integrated these tool into their development and if you are able to share how you integrated it into convex

Considering convex as a database for a job tracker with background scripts

I'm developing a personal job tracker for myself, and I'm basically a bit overwhelmed with what to use here, (why pay 299$ for a job tracker when you can build it yourself) What i want exactly is to have a notion notebook or just web page where i can categorise emails into offer, applied, rejected, and I'm slightly unsure on what to use here, since i want to keep the tracker running when I'm off the web page. And how should i optimize the mutations to be fast while not overloading the server or the email API? I hope i made it clear!...

Assertion failed

I get after closing a dev server making changes and then running bun run dev ```Opening https://dashboard.convex.dev/d/outstanding-herring-963 in the default browser......

stable query with status

i want to get if a stable query isPending but useStableQuery only returns the query data

ContextHttpClient, setAuth, cannot get user from ctx

So im trying to call a query from the http client, and this query will need to be auth because we want to access ctx.getIdentity inside. ```ts const convexHttpClient = new ConvexHttpClient( process.env.NEXT_PUBLIC_CONVEX_URL!,...

Can't apply multiple bounds (filters) on an index

For the table I'm filtering, I don't know how many results I will get back. I don't want to use collect (in case it crashes) and if I use take, their is a chance all the data returned will be filtered out and the user won't see anything. I thought I'd add all the filter options into the index, but get an error. ```javascript...

Is crypto.subtle.encrypt() supported?

I'm trying to encrypt data within a mutation. From the docs and discord conversations I understand that crypto.subtle is partially supported. However when I attempt to use the following code I get this error message: Not implemented: encrypt for SubtleCrypto. Consider calling an action defined in Node.js instead (https://docs.convex.dev/functions/actions). Here's the code:...

Supported in China?

Does Convex work within China's Great Firewall? I'm currently using Firebase for one of my apps and that's a no-go due to their restrictions on Google. Is there any reports of whether apps built with Convex work without a VPN there and if not, are there workarounds to support this? I know more raw solutions using a traditional API architecture we could easily find a solution, but the unique way that Convex approaches things seem like it might not be. We would really love to adopt Convex for our upcoming project but being able to support users in China is a big priority....

User document is deleted when I try to reset password

So I tried implementing reset password, I used the instructions in the doc. So I started by setting up resend and setting up my auth.ts. `import { convexAuth } from "@convex-dev/auth/server"; import { Password } from "@convex-dev/auth/providers/Password"; import { internal } from "./_generated/api";...