punnP
Convex Community3y ago
13 replies
punn

Actions execute twice

I've been noticing that a fetch() call from an action seems to run twice.

For context, I'm sending a message using an external API. I have a helper function that calls fetch(). An action runs that helper function.

In logs, I see only the action running once. However, the message is sent twice and it has different content on each send. Since I'm generating the reply by calling gpt3.5, it seems like the whole action ran again even if the logs don't show it.

Any ideas?
image.png
Was this page helpful?