milk enjoyer
milk enjoyer
CCConvex Community
Created by milk enjoyer on 3/30/2024 in #support-community
Getting MissingAccessToken when deploying to prod
I am getting Unauthorized: MissingAccessToken: An access token is required for this command. when I am deploying to prod. I have double-checked that the deploy key is correct.
10 replies
CCConvex Community
Created by milk enjoyer on 3/25/2024 in #support-community
Custom auth not working
No description
76 replies
CCConvex Community
Created by milk enjoyer on 3/11/2024 in #support-community
Got "Maximum call stack size exceeded" when checking validity of types when using zid
Hi, I recently came across this error, and after narrowing down which parts it was from, one instance was when I imported and used zid from within my nextjs project. But I am not exactly sure why this happens in this project as I managed to import zid without any issue in other nextjs projects. I am still debugging it and I am sure there is something else which is the issue but just wondering if you guys have seen anything similar and can give some clues.
24 replies
CCConvex Community
Created by milk enjoyer on 2/28/2024 in #support-community
Where are our Convex instances hosted? Where should we host our other APIs for minimal latency?
I am wondering if we can check where our Convex instances are hosted so we can try as much as possible to host our other APIs that depend on or are a dependency of our Convex app to minimize latency. i.e. us-east-1 etc
2 replies
CCConvex Community
Created by milk enjoyer on 2/20/2024 in #support-community
How many scheduled functions can be ran in parallel?
I find that I hit this limit very quickly and the scheduled functions quickly spiral to more than 1000+ if I have actions that spawn new actions. How many functions can run in parallel now and is it possible to increase this limit?
8 replies
CCConvex Community
Created by milk enjoyer on 2/20/2024 in #support-community
Is there a way to delete all files?
Right now, we can only "Load more" 20 files at a time. I have my own scripts that delete based on Id<"_storage">, which works for normal cases, but sometimes because of bugs and experimentation I might lose the storage ID. Would be great if we can "delete all files" for quick experimentation, or at least have some way to find all files where their storage ID is not found in the database to delete it.
6 replies
CCConvex Community
Created by milk enjoyer on 2/18/2024 in #support-community
Generated types fall to default when using a schema with 200+ keys
I define all my tables with Zod and it is a great workflow. Using zodToConvex, I convert everything to convex validators before adding it to my defined schema. However, I realized that the generated types fall back to the following when I added around 200+ keys to my Zod schema:
{
[x: string]: Value;
_id: Id<"tableName">;
}
{
[x: string]: Value;
_id: Id<"tableName">;
}
Is this intended?
1 replies
CCConvex Community
Created by milk enjoyer on 2/15/2024 in #support-community
convex-helpers throws errors when "@total-typescript/ts-reset" is used
I know this might be a pretty niche case, but @total-typescript/ts-reset is quite a popular library used by many developers. It throws errors from within node_modules, by the way, even though tsconfig explicitly ignores node_modules. You can repro this by using both libs in a fresh project. The easy solution (which I am using) is to manually copy over the helper functions that are useful from the repo into my project, but of course downloading it as a package would be more convenient.
17 replies
CCConvex Community
Created by milk enjoyer on 2/14/2024 in #support-community
Issues with Vercel deployment
No description
28 replies
CCConvex Community
Created by milk enjoyer on 2/11/2024 in #support-community
Most efficient way to count (more than 16k entries)?
I want to count items within a table with more than 16384 entries that fit the query. However, the maximum amount of entries that can be read within a single query is 16384. What is the solution to getting the count for such a query?
34 replies
CCConvex Community
Created by milk enjoyer on 2/9/2024 in #support-community
Extremely slow query: how to optimize?
No description
8 replies
CCConvex Community
Created by milk enjoyer on 1/18/2024 in #support-community
Runtime exited unexpectedly despite all Promises awaited
I keep getting this error
Runtime exited unexpectedly. This typically happens due to error raised from dangling promises. Did you forget to await your promises? RequestId: 6579ea81-b938-4cc6-8a87-349cee46ffed Error: Runtime exited with error: signal: killed
Runtime exited unexpectedly. This typically happens due to error raised from dangling promises. Did you forget to await your promises? RequestId: 6579ea81-b938-4cc6-8a87-349cee46ffed Error: Runtime exited with error: signal: killed
But I have checked the code and I did await all promises. Is there a way to debug to see where it failed at?
32 replies
CCConvex Community
Created by milk enjoyer on 1/17/2024 in #support-community
Uploading files from Node/backend
ctx.storage.store takes in a Blob, but Blobs are not really well supported in Node and backend environments. What's the preferred way to upload a file from a server?
16 replies
CCConvex Community
Created by milk enjoyer on 1/17/2024 in #support-community
Connection lost while action was in flight when using node "https"
I am using it within a "use node" actions file, but it does not work.
38 replies
CCConvex Community
Created by milk enjoyer on 1/14/2024 in #support-community
Usage of playwright in Convex Node
Hey @ballingt it's me again, we spoke on email and you recommended playwright-aws-lambda for running playwright on "use node" convex actions. However, I can't see to get it to work as it keeps throwing the following error: Uncaught Error: Executable doesn't exist at /home/sbx_user1051/.cache/ms-playwright/chromium-1091/chrome-linux/chrome
9 replies
CCConvex Community
Created by milk enjoyer on 12/28/2023 in #support-community
Cannot resolve node packages even with "use node"
I have "use node" indicated in my actions file, and that is the only place in my entire code where I am using the Node APIs. However, I am getting these errors:
✘ [ERROR] Could not resolve "buffer"

node_modules/safer-buffer/safer.js:5:21:
5 │ var buffer = require('buffer')
╵ ~~~~~~~~

The package "buffer" wasn't found on the file system but is built into node. Are
you trying to bundle for node? You can use "platform: 'node'" to do that, which
will remove this error.

✘ [ERROR] Could not resolve "string_decoder"

node_modules/iconv-lite/encodings/internal.js:49:28:
49 │ var StringDecoder = require('string_decoder').StringDecoder;
╵ ~~~~~~~~~~~~~~~~

The package "string_decoder" wasn't found on the file system but is built into
node. Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
✘ [ERROR] Could not resolve "buffer"

node_modules/safer-buffer/safer.js:5:21:
5 │ var buffer = require('buffer')
╵ ~~~~~~~~

The package "buffer" wasn't found on the file system but is built into node. Are
you trying to bundle for node? You can use "platform: 'node'" to do that, which
will remove this error.

✘ [ERROR] Could not resolve "string_decoder"

node_modules/iconv-lite/encodings/internal.js:49:28:
49 │ var StringDecoder = require('string_decoder').StringDecoder;
╵ ~~~~~~~~~~~~~~~~

The package "string_decoder" wasn't found on the file system but is built into
node. Are you trying to bundle for node? You can use "platform: 'node'" to do that,
which will remove this error.
74 replies
CCConvex Community
Created by milk enjoyer on 12/19/2023 in #support-community
Do actions have the same transactional guarantees as mutations?
I understand that mutations are run transactionally, but is it the same for actions? Let's say the action fails halfway but triggers a write before it fails. Will the write still go through?
23 replies