Michael
CCConvex Community
•Created by Michael on 4/24/2025 in #support-community
Error when unsubscribing from browser.ConvexClient query
The error is: Cannot read properties of undefined (reading 'numSubscribers'), here in convex/browser.
We are using the browser.ConvexClient in a Hono app to listen to updates from Convex, as outlined below. While calling unsubscribe too many times, an error is triggered inside the Convex code.
How can I test if it's safe to call unsubscribe? Since unsubscribe returns void, I think it would be better if it just doesn't do anything rather than produce an error if I unsubscribe too often.
2 replies
CCConvex Community
•Created by Michael on 4/7/2025 in #support-community
Permissions error on prod deployment even though I'm Project Admin
A couple of minutes ago I was made Project Admin for a project. I want to deploy to the prod deployment of that project and add an env var through the dashboard. In both cases I get the following error message:
403 Forbidden: ReadOnlyAdminKey: You do not have permission to perform this operation.
I've logged out and back in on the dashboard without effect. Logging out and back in on the CLI did solve the problem there but it persists on the dashboard.
Is it expected that permission updates take a whhile and require logging out / back in on the CLI?5 replies
CCConvex Community
•Created by Michael on 4/5/2025 in #support-community
How to best model an eventually complete record in the schema?
We have a table in which some fields are not ready at creation, but are eventually filled out by scheduled functions. What would be the best way to model the schema for this in Convex and get type safety?
Here's a complex approach that we're trying (that would obviously not scale well for more fields):
Thank you!
3 replies