Agent Provider Depot / Error Rescue Index (28 Traps) / wrong-package-mailgun-js
wrong_packagetrapId: trap-wrong-package-mailgun-js · asOf: 2026-10-28
Deprecated Package Trap: 'mailgun-js' (Unmaintained SDK)
mailgun-js was deprecated years ago in favor of mailgun.js, and transactional-email has a higher-scored Depot Pick (resend, score 8.5, autoActOk: true).
1. Immediate Code & SKU Fix
Replace With SKU:
resendInstall Command:
npm uninstall mailgun-js && npm install resendRequired Env Vars:
RESEND_API_KEYimport { Resend } from 'resend';
const resend = new Resend(process.env.RESEND_API_KEY);
await resend.emails.send({ from: 'agent@yourdomain.com', to, subject, html });2. Verified Hot-Swap Fallback Route
JTBD: transactional-email
liveHealth: operational · autoActOk: true
Maximum deliverability paranoia — Postmark
Matched Error String Signatures (1)
mailgun-jscurl -s "https://getagentdepot.com/api/rescue?q=mailgun-js"
Browse All 28 Agent Runtime Rescue Cards
deprecated-claude-3-5-sonnetdeprecated-openai-gpt4deprecated-ada-002deprecated-google-generative-aiwrong-package-r2wrong-package-pinecone-clientwrong-package-mailgun-jsrate-limit-429provider-outage-529payment-required-402waf-bot-blocksmtp-port-25-timeoutlambda-15m-timeoutvercel-4-5mb-payloadsqlite-busyneon-cold-startsmithery-connect-shutdowngemini-preview-shutdown-2026-11-17openai-tts-1-shutdown-2027-01-06openai-insufficient-quotacontext-length-exceeded-413streaming-sse-econnresetcloudflare-1015-rate-limitvector-dimension-mismatchmcp-jsonrpc-method-not-foundsandbox-oom-exit-137postgres-too-many-connectionsheadless-browser-executable-missing