Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the open-source reactive database for app developers.

Join

support-community

show-and-tell

general

self-hosted

announcements

Migration help to convex

Hey convex team we are having many issues in appwrite and looking to move our startup to other providers and we are thinking convex as a good option can anyone guide us?

How would you architect this in Convex?

Hey, I'm trying out Convex in a learning project, a simple streaming service, and I'm wondering how would you deal with fetching external movie metadata (tmdb in this case), is syncing the best option or should I go with the action route? And for the action, do I really need to create a empty useEffect to call the action? Here's what I thought so far: ```ts import { ActionCache } from "@convex-dev/action-cache";...

Chaining optimistic updates?

I'm building a block based outliner note-taking app. Each bullet point is an entry in the blocks table. Hitting enter creates a new block and hitting tab indents it. Both block creation and indentation are convex mutations (which feels right to me, but happy to be corrected). However I'm having trouble with optimistic updates, especially chained ones, e.g. if I rapidly hit enter then tab. I suspect the reason is that the indent mutation takes a block id, and the client doesn't know what the bloc...

Is there anyway to prevent the convex window from opening up every time I run the app in dev?

Basically on every run dev command, the convex window opens up and fills up my tabs pretty quickly. Any way to prevent that window from opening up?

Mutations cannot query rows in DB

I'm staring at 2 in the DB, and a query can see them fine
No description

How to manually create an authAccount to go with a user in Convex Auth?

I need to create user rows and then later let humans claim those user (profiles) and create a proper authAccount row to go with them. I've created a table of invitations, which include hashed tokens, and mutation to create an invite and email the human in question. I'm now stuck on the human claiming the user (profile). I suspect adding a new ConvexCredentials provider might be a solution which uses the token to sign the user in, but the documentation for ConvexCredentials is sparse an...

No types in ide

I am using convex with next js, and the types of all api. is any. the type of api is FilterApi<ApiFromModules<{ I keep getting the eslint error Unsafe assignment of an error typed value...

How to delete a payment card

How to delete a payment card

deploymentURL is undefined

When I use convex Auth with my next JS app, I get this error once in a few minutes:
GET /.well-known/appspecific/com.chrome.devtools.json 404 in 1045ms
deploymentUrl is undefined, are your environment variables set? In the future explicitly passing undefined will cause an error. To explicitly use the default, pass `process.env.NEXT_PUBLIC_CONVEX_URL`.
GET /.well-known/appspecific/com.chrome.devtools.json 404 in 1045ms
deploymentUrl is undefined, are your environment variables set? In the future explicitly passing undefined will cause an error. To explicitly use the default, pass `process.env.NEXT_PUBLIC_CONVEX_URL`.
...

Error: Unable to start push to [...]

``` ✖ Error: Unable to start push to https://redacted.convex.cloud ✖ Error fetching POST https://redacted.convex.cloud/api/deploy2/start_push 500 Internal Server Error: InternalServerError: Your request couldn't be completed. Try again later. Failed due to network error, retrying in 505.98ms... ✖ Error: Unable to start push to https://redacted.convex.cloud...

Convex Auth - re-rendering / caching issue in NextJS

Hey all, I'm seeking some advice for how I can resolve an issue I'm experiencing. On page navigation the components that consume my use-user hook tend to flash with a loading state and I would like to avoid this. Any help would be much appreciated. I initially tried this without using the react-query wrapper, but the problem persists in both cases. Related packages I'm using: ``` "@auth/core": "0.37.0",...

My Convex deployments are consistently timing out

I am working with an AI assistant to build an application on Convex. We have written the necessary backend code for user authentication using Resend for email one-time passcodes. Problem: We are unable to deploy our backend changes. Every time we run npx convex deploy, the command executes for exactly 60 seconds and then fails with a timeout error. Command Executed: npx convex deploy...

Hello, I'm having a problem with my `tenants`.

When search for a product, I'm getting products from another tenant. ```js export default query({ handler: async (ctx) => { console.log("Write and test your query function here!");...

Are concurrent inserts and updates not possible on Convex?

I have a table called taskExecutions which has a status and startAt field with an index on them - index('by_status_startAt', ['status', 'startAt']). During some intervals I'm inserting a lot of new documents and updating a lot of documents which have status=ready and startAt<=current_time-500ms. These index ranges should never conflict and new inserted documents have startAt more than the current time and the updates are doing updates on documents with olders startAt. But I'm get...

Some users are experiencing WebSocket closed with code 1011: InternalServerError

Some of our users are encountering the error WebSocket closed with code 1011: InternalServerError, which prevents them from executing queries or mutations. So far, the issue has only been reported by one user, and interestingly, the error only occurs on certain pages. We are using Next.js for the frontend and Clerk for authentication....

How to pass the http request object as an argument

I have to use node libraries when performing operations within my http action, so for this reason I've pulled out the code that will run in the node runtime into an action that live in file with the use node directive. I call the node action from within the http action, but need to pass the request object to the node action. ``` convex/myFunctions.ts ...

Error: Unable to start push on schema change

Hey there, I've just encountered another error while running pnpx convex dev and I'm not quite sure how to fix it. It is constantly re-trying to upload the changes to convex but I am always getting this error: ```json Failed due to network error, retrying in 729.66ms... ✖ Error: Unable to start push to https://dashing-curlew-734.convex.cloud...

Unable to start push | schemaChange indexDiffs

Hey! I am having a really hard time to push my changes to development. I am on the latest commit of my project. This commit is already in production but now I am unable to push to develop environment ( I have not made any changes to the convex files). I am getting this exact error:...

Our convex is current under attack from spamming account creation

Our convex is current under attack from spamming account creation, please give some suggestion from detecting real browser request vs script before convex auth