tiernacity
CCConvex Community
•Created by tiernacity on 3/21/2024 in #support-community
OCC and retries and errors, oh my
Hey Convex I'm trying to understand the behaviour of optimistic locking and retries, as it applies to my scenario and some errors I'm seeing. Your docs (here) say a mutation will get "several retries" before an error is thrown. It's possible to get more information about what "several retries" means?
I'm also confused about whether the below log message is a (soft) warning or a (hard) error/failure. When I inspect my data in the dashboard, it looks like my mutation succeeded - so I think it's a warning? What's the retry behaviour and what are the thresholds/limits?
5 replies
CCConvex Community
•Created by tiernacity on 2/21/2024 in #support-community
Problem integrating react-email into an internal action
Hi, I'm trying to send email from a convex action, using https://resend.com/ and https://github.com/resend/react-email. It's a next.js 13 app.
The resend integration is working, it's just a simple call to their SDK. But when I try to integrate react-email, the convex functions won't deploy.
My action (in
/convex/email.ts
) imports and calls a function from another module (in /convex/src/email/new_share.ts
). This module then imports a react-email component from a .tsx
file outside of /convex
(in /emails/new_share.tsx
). This component needs to be provided to the resend SDK.
When I run npx convex dev -v --once
, I can see .js
files generated from my two files inside of /convex
.
I can also see .css
files generated for each - these are presumably needed by react-email. I haven't yet investigated whether react-email can build without them.
Regardless, my convex dev
command fails because it doesn't want to upload CSS files. I've tried adding 'use node'
in the action file, but see the same error.
Any advice or guidance you can give me?
Here's some edited output that shows the error:
42 replies