Ruin9999
Ruin99993w ago

ActionRetrier docs

Is the ActionRetrier still being actively maintained? I'm trying to look for documentation but can't seem to find a unything up to date
10 Replies
Convex Bot
Convex Bot3w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
lee
lee3w ago
Convex
Action Retrier
Add reliability to an unreliable external service. Retry idempotent calls a set number of times.
Ruin9999
Ruin9999OP3w ago
That's weird though i'm following those docs and trying to
import { components } from "./convex/_generated/server";
import { components } from "./convex/_generated/server";
and im gettting thrown an error saying that "components" is not exported from that file Did the file change?
lee
lee3w ago
darn yes we need to update the docs apparently it's import { components } from "./convex/_generated/api";
Ruin9999
Ruin9999OP3w ago
Do you know which file I should be exporting from? Ah thank you
lee
lee3w ago
the example code https://github.com/get-convex/action-retrier/tree/main/example should be up to date if there are any more issues with the docs
GitHub
action-retrier/example at main · get-convex/action-retrier
Convex component for retrying idempotent actions. Contribute to get-convex/action-retrier development by creating an account on GitHub.
Ruin9999
Ruin9999OP3w ago
Hi anyone who's having this same issue, the example might be a bit outdated at this time,
convex/_generated/api
convex/_generated/api
doesn't seem to export
components
components
in 1.18.2. To fix this I simply just did
import componentsGeneric;
const components = componentsGeneric()
import componentsGeneric;
const components = componentsGeneric()
in my convex action instead
lee
lee3w ago
if you're running npx convex dev, the generated file will be updated
Ruin9999
Ruin9999OP3w ago
hmm might be an issue on my end then because I tried deleting _generated and running
npx convex dev
npx convex dev
multiple times and it didn't change
lee
lee3w ago
does npx convex dev work with no errors? and have you updated your convex/convex.config.ts ?

Did you find this page helpful?