ashuvssut (ashu)
ashuvssut (ashu)
CCConvex Community
Created by ashuvssut (ashu) on 9/27/2023 in #support-community
Cannot resolve built-in Node's "crypto" library
Example:- (Just to show a working demo code): https://github.com/ashuvssut/cookied/tree/dev/apps/convex
6 replies
CCConvex Community
Created by ashuvssut (ashu) on 9/27/2023 in #support-community
Cannot resolve built-in Node's "crypto" library
I would migrate to that browser like crpyto global, but there will to much code to change. So i decided to stick to node's crypto This trick worked for me:- take out all the logics that use node's crypto as utility function into a separate file. doesn't matter if you have written the crypto module's import statement or not, if you have used those utility function in some other file, you have to put "use node"; directive this works only for Actions. this wont work for Query or Mutation because only Actions can use Node.js runtime and query mutation cant
6 replies
CCConvex Community
Created by ashuvssut (ashu) on 9/30/2023 in #support-community
Vector Index and Index cannot have same name in a table
By the way, this Error is not so serious. I am fine with naming my regular index by_embedding_idx I just thought that this Bug Report might help you
5 replies
CCConvex Community
Created by ashuvssut (ashu) on 9/23/2023 in #general
Puppeteer in convex
Oh... got it. I actually thought that there will be python convex functions lol
30 replies
CCConvex Community
Created by ashuvssut (ashu) on 9/23/2023 in #general
Puppeteer in convex
I was discussing with a friend of mine regarding my puppeteer issue He said that In python there is a library called "scrapy" This library's bundle size will be less than 50mb. But implementing web scraping of CSR web app may be a little tricky Whatever it may be. I will try out scrapy when Python support comes up in Convex
30 replies
CCConvex Community
Created by ashuvssut (ashu) on 9/23/2023 in #general
Puppeteer in convex
Hi Tom, I have a question, and it's unrelated to our ongoing thread. This question might sounds a bit silly 😅 I noticed in the recent announcement that Convex will have first-class Python support. I'm curious about what "first-class" means in this context. Does it imply that we'll have fully typed support for both the frontend in TypeScript and the backend in Python? I'm trying to understand how the type system will work with Python functions. Do we need to write specific schemas that the Convex generator understands to generate types for both TypeScript on the frontend and Python functions on the backend?
30 replies
CCConvex Community
Created by ashuvssut (ashu) on 9/23/2023 in #general
Puppeteer in convex
yup. happened many times😅
30 replies
CCConvex Community
Created by ashuvssut (ashu) on 9/23/2023 in #general
Puppeteer in convex
haha Just wanted to clarify the misinformation I provided earlier. 😅
30 replies
CCConvex Community
Created by ashuvssut (ashu) on 9/23/2023 in #general
Puppeteer in convex
Ah! today I saw an issue in Prod. Puppeteer doesn't work with vercel serverless functions in prod build. It just worked locally on my pc in dev mode When I saw the logs (Production), it said
Error: Could not find Chrome (ver. 117.0.5938.92). This can occur if either
1. you did not perform an installation before running the script (e.g. `npm install`) or
...
...
Error: Could not find Chrome (ver. 117.0.5938.92). This can occur if either
1. you did not perform an installation before running the script (e.g. `npm install`) or
...
...
Actually its because vercel's 50MB file-size limit For, now I think there's no free CSR webapp scraping serverless solution. Going to stick with fetch
30 replies
CCConvex Community
Created by ashuvssut (ashu) on 9/27/2023 in #general
Trouble with equality predicate
thanks
23 replies
CCConvex Community
Created by ashuvssut (ashu) on 9/27/2023 in #general
Trouble with equality predicate
alright! got it
23 replies
CCConvex Community
Created by ashuvssut (ashu) on 9/27/2023 in #general
Trouble with equality predicate
I liked you searchIndex trick that you showed above. Do you have any searchIndex trick for this use case? (I want to perform something like .notEq) I think I have to use .filter
23 replies
CCConvex Community
Created by ashuvssut (ashu) on 9/27/2023 in #general
Trouble with equality predicate
thanks!
23 replies