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

Table Aggregate

https://github.com/get-convex/aggregate/blob/main/example/convex/leaderboard.ts - trying to follow this example here ``` const aggregateScoreByUser = new TableAggregate<{ Key: [string, number]; DataModel: DataModel;...

convex-auth force get redirect url

hi When we run the login function for web in convex-auth, it automatically opens the url in the browser, but for react native, redirect url return and we open that url in the app browser ourselves. (Example: Expo WebBrowser.openAuthSessionAsync) I need to apply the flow in react native in a capacitor-based application, but since capacitor is web-based, it redirects directly to the login. Can't we get the redirect url manually and process it ourselves, as in react native? ...

Facing error when calling api in actions

[CONVEX A(actions:scrapUrls)] [ERROR] 'Error in GET /api/crawler:' [Error: error sending request for url (https://api.firecrawl.com/v1/scrape): client error (Connect): unsuccessful tunnel]

Schema and functions advice

```ts import { defineSchema, defineTable } from "convex/server"; import { v } from "convex/values"; // The schema is entirely optional....

Running "npx convex deploy --cmd 'next build'" command fails the build

Help me. I want to deploy to prod. I'm using vercel. I did the configuration like in the docs by setting CONVEX_DEPLOY_KEY env var only for prod. But now getting this error in logs: ✖ Vercel build environment detected but CONVEX_DEPLOY_KEY is not set. Set this environment variable to deploy from this environment. See https://docs.convex.dev/production/hosting...

Change database tables without re-deploying code

Hi, is it possible to change the table columns or remove/add tables to the database from the deployed code? I'm thinking of programmatically changing the tables in the database from ai generated code.

Autoincrement and unique fields in convex.

This is my drizzle schema: ```ts const admins = createTable("admins", { id: int("id").autoincrement().primaryKey(),...

Google Auth Consent Screen showing HTTP Actions URL

Hi! I have followed the setup in here to make the OAuth for Google not show the HTTP Actions URL, but unfortunately it keeps showing the HTTP Actions URL. May I ask how to address this further, and whether or not I should be concerned with this as a potential security issue? My database is still pretty new so I can just port over to a new database. Thank you!...
No description

Convex Auth React and React Native monorepo

Hello, how can i use convex auth with google OAuth on both my react and react native apps. I set up everything and its working, just a bit confused about SITE_URL thing

How to query while inside a function?

I have a handleSubmit function called by a form. I have a query built that works, but I don’t know how to access it while I’m inside of a function. I know the query works because I can hardcode and use a stand alone useQuery but I can’t figure out the syntax/command to use while inside of a function to call it with an arg. I’m using TanStack. Clarification: the query does a check for some business logic which is why I’m doing it inside of the handleSubmit. The rest of the handleSubmit depends on the result of this initial query. Do I need to do this more sequentially instead of all inside one function? Get the form element I need and make it a const then pass that to a query, then call that from inside the handle form?...

Returning response from runQuery in a query breaks typescript

As seen in the included images: in the first image I return data from the runQuery and now the entire function and everything in it resolves to any. When I remove the return (or change it to something like return 1) the types work again. I've had this before with actions as well. I think the issue is with runQuery because when I return data I get from ctx.db it works fine. I guess this is a bug? I can't find anything in the docs that state I shouldn't return data from runQuery. Or is there something else that I might be doing wrong?...
No description

Weird type error when searching by Index

I get this error when trying to filter by an index, i created it in my schema too. Argument of type 'string' is not assignable to parameter of type 'never'.ts(2345) I ahve attached image of the query....
No description

This Convex deployment does not have HTTP actions enabled.

why is my convex webhook returning this error message? I can't find anything on how to enable http actions i just followed this guide https://docs.convex.dev/auth/database-auth#webhook-endpoint-implementation but on Clerk all calls are failing...
No description

Authentication not updating

I have an incredibly simple auth setup following the guide here https://labs.convex.dev/auth/api_reference/react. I want to use the <Authenticated> <Unauthenticated> and <AuthLoading> components to structure my code, but it seems that the <Authenticated> will never trigger. I will either be in a state where I am unauthenticated or loading....

How to properly authenticate convex functions called via fetchAction and fetchMutation.

So in a user context I have found that you can pass the users token to object on the third arguement of a fetch action call as below ``` const mythings = await fetchQuery( api.yadiyadiyada.getSomeX, {...

dashboard not loading in firefox

Hi, I tried disabling any adblocker extensions in firefox but still I am unable to open the convex dashboard in firefox. the console shows the following error Firefox can’t establish a connection to the server at wss://outgoing-panther-899.convex.cloud/api/1.18.2/sync. I'm now using google chrome without issues, probably something related to browser compatibility, firefox hasn't been in it's prime lately...

PRODUCTION ERROR

My production environment has been down for a long time (at least 40 minutes). The dashboard doesn't work. The websocket doesn't connect from the application site. The Discord community is unresponsive. The website doesn't reflect this production outage. This is alarming to me. Paying customer....

Could not find public function

All of a sudden I'm getting: `` Ok([Request ID: 2333d44835d22263] Server Error Could not find public function for 'users:getUserById'. Did you forget to run npx convex dev or npx convex deploy`?...
No description

Reporting Phishing

Hi team, what's the best method to report phishing URLs on Convex? Happy to move to a DM or group to discuss more widely. Thanks, Luke from Netcraft....