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!3 Replies
@winsoroaks hi. is there a reason you're both providing a callback and a .then().catch() promise-style handler?
// no more logs starting hereThere's a missing
await
on the next line. The dashboard logs should be showing a warning about an unwaited Promise.
Try
etc. and see if it fixes the issue.oh thanks guys! adding
await
works 🙏 sorry for the noise 🤦♂️
yea! normally i'd see the warning when await is missing in the convex funcs for mutation / query, weird it didnt show up this time