winsoroaks
CCConvex Community
β’Created by winsoroaks on 6/26/2024 in #support-community
tools to subscribe to websocket on the backend?
Hi team! I am planning to build an app that subscribes to some trading activities using convex, whatβs the best way to do it? I currently just doing a while True loop, might not be the most efficient thing. Thanks! π
9 replies
CCConvex Community
β’Created by winsoroaks on 5/20/2024 in #support-community
is there a way to mock the ctx.db.system?
hi team! one of my mutation checks for the image size and store them in my table.
is there a way to handle this from the convex-test package? thanks!
11 replies
CCConvex Community
β’Created by winsoroaks on 5/14/2024 in #support-community
queryWithUser is not a function.
(not urgent)
hi team! im working on some unit tests. the convex-test library is awesome and fun! however, im running into a weird scenario (not related to the lib perhaps).
and when i run vitest, im getting
but when i hard code the LIMIT to be 100, it works. any idea what's wrong? π
2 replies
CCConvex Community
β’Created by winsoroaks on 5/14/2024 in #support-community
query and update inside for-loop
(not urgent)
hi team! im running into a weird situation. hopefully it's just that im blind to the logic implementation. i have the following code that "updates" the usage table with the image size the user uploaded
im not sure why the usage returned is 0, 0, 0 where i'd expect it to be 0, 93558, 93558 + 68153. i managed to change the implementation to the following:
which is def more efficient and worked. im just curious if there's some special case with my first implementation. thank you.
9 replies
CCConvex Community
β’Created by winsoroaks on 5/12/2024 in #support-community
running migration from dashboard
10 replies
CCConvex Community
β’Created by winsoroaks on 5/11/2024 in #support-community
run migration on prod before pushing new schema?
i've added a new column to my table, after running a migration on local,
can i run the migration on production before pushing the new schema? i also have rank an optional field now
2 replies
CCConvex Community
β’Created by winsoroaks on 5/8/2024 in #support-community
suggestions on improving my architecture? (not really convex specific)
37 replies
CCConvex Community
β’Created by winsoroaks on 5/6/2024 in #support-community
another copy of javascript when adding tsconfig.json
i just started to add a
tsconfig.json
to my /convex dir and im getting a copy of js file for every ts file i wrote. this hasnt been the case in the past and i wonder if i've configured something wrongly? here's my tsconfig.json:
thank you π7 replies
CCConvex Community
β’Created by winsoroaks on 5/3/2024 in #support-community
when is the best time to create a user entry in the db?
hi all!
im curious what's the best practice here. assume that i have a to-do list app and using clerk for auth. if i allow the user to sign in via google, there's no clear way to do "user has signed up" -> "i need to register user in db."
when should i create an entry of the user in the db? im thinking of when the user has created a to-do list and clicked on the save button, i can check if the user has existed in the
when should i create an entry of the user in the db? im thinking of when the user has created a to-do list and clicked on the save button, i can check if the user has existed in the
users
db and create the entry.
is this reasonable? thank you34 replies
CCConvex Community
β’Created by winsoroaks on 4/24/2024 in #support-community
can i do auth or run a function on the server side?
hi all! i have the following code,
and i've been running into the following error when i click on "logout"
is it possible to move
api.db.username
to the server side for this component? or am i taking a wrong path? thanks!3 replies
CCConvex Community
β’Created by winsoroaks on 4/5/2024 in #support-community
ConvexChatMessageHistory schema for langchain
Hi @michal, im reading the article: https://stack.convex.dev/ai-chat-using-langchain-and-convex and im trying to understand how the
messages
schema is constructured and its relationship with ConvexChatMessageHistory
.
im currently using a RunnableSequence
and it doesn't save to memory. i have to manually do
however, im running into the error below
to fix this, i had to modify the schema to
any idea why the input is having a diff structure when it tries to write to the db? thank you π2 replies
CCConvex Community
β’Created by winsoroaks on 4/4/2024 in #support-community
Adding deps to node.externalPackages didn't resolve the error
Hi team! im running in to the error below
tried a few variations
but didnt fix the issue
any idea what's wrong? thank you.
11 replies
CCConvex Community
β’Created by winsoroaks on 4/2/2024 in #support-community
Uncaught Error: Failed to insert or update a document in table "messages" because it does not match
π was the ConvexVectorStore updated recently? im following the example from https://stack.convex.dev/ai-chat-using-langchain-and-convex and ran into the error above. was able to fix it by adding
response_metadata: v.optional(v.any())
to the schema2 replies
CCConvex Community
β’Created by winsoroaks on 3/10/2024 in #support-community
recommended logger for convex functions?
hi team, i've been using tslog as my logger for my front end stuff. apparently when i try to import it to my convex functions, im getting weird stuff, sth like some byte arrays?
i think i can go with console.log, just wondering if there's some known limitation with my current approach. thanks!
2 replies
CCConvex Community
β’Created by winsoroaks on 3/7/2024 in #support-community
loading protos
Hi team. im trying to load some protos into the convex backend but couldnt figure out how
my directory looks sth like
tried a few variations but keep running into
i also tried moving the protos/client.proto into the convex dir/ but got an error like
i'd apprecate any tips on how to debug the error. thanks!
15 replies
CCConvex Community
β’Created by winsoroaks on 1/16/2024 in #support-community
resend lib started to fail
when i configured my resend clients on 11/27, it was working perfectly. i havent touched the email components until the past weekend and the same code has been failing.
i upgraded my convex to 1.7 on 12/30. it's unlikely that this is breaking my resend code. im quite baffled and started reaching out to resend support today. i wonder if others around still have their resend clients working with convex 1.7.
after some trial and error, the resend.emails.send func that hits the
POST /emails
endpoint only fails when im using a template.
fwiw, here's the error i see in the logs from resend
would appreciate any insights. thanks!4 replies
CCConvex Community
β’Created by winsoroaks on 1/9/2024 in #support-community
how do LOWER(q.field("name") LIKE LOWER('%name%')
hi team! tried searching the docs but to no avail. any idea how can i do sth like
but ignoring the case? π
4 replies
CCConvex Community
β’Created by winsoroaks on 1/7/2024 in #support-community
what's the proper way to query an SDK client in node env?
whenever a user navigates to the billing page, i want to check stripe if they have cancelled the pay, essentially, im trying to do
since stripe SDK is in the node env, i need to wrap it in an "action"
and i was thinking that i could do
and on the page.tsx, do a fetch to my API above. but im running into
or is there a better approach to what im trying to achieve? thanks!
13 replies
CCConvex Community
β’Created by winsoroaks on 1/3/2024 in #support-community
long shot: debugging twilio API errors but cannot see logs
hi all! this is a long shot, but i'll try my luck. im trying to debug why my outbound call is successful only once out of the 10 times i try. i've added some log statements around the function but they dont show up in my convex dashboard logs. does anyone know why?
im aware that this is using a node sdk and have add the
"use node"
pragma.
it succeeded once miraculously. i am interested in getting more logs before i reach out to twilio's support.
thanks!5 replies
CCConvex Community
β’Created by winsoroaks on 12/31/2023 in #support-community
dumb question on how to allow users to do analytics
hi team! im not there yet but im curious how can i offer analytics for my users. let's assume my user wants to click a button to generate a chart of the revenue per month for the past 12 months.
after reading some threads, i see folks here talking bout airbyte, dagster, duckdb, etc..
what's the correct mental model to think about this?
is it the case that i stream data out of convex via airbyte (cloud) to another server that hosts the duckdb? which means i can then set up my convex service to make an API call to the duckdb service for the revenue data?
pls feel free to correct my wrong understanding. thanks!
13 replies