Know what broke.Errors, logs, uptime, servers and containers in one place, with AI that traces code failures to the commit and the engineer behind them.

Issues/WDK-2F7checkout-api · productionSearch
CriticalOpenproductionNew in 2.14.0

KeyError'currency'

orders/views.py:141 in confirm_payment · release checkout-api@2.14.0
Events1,284+212 last hour
Users312unique
First seen2d agowith 2.14.0
Last seen1m agoiOS 2.14 · Android 2.14
Events · last 24hpeak 212/h · 14:00
2.14.0
24h ago12hnow
Stack trace3 frames · 1 in app
136@login_required
137def confirm_payment(request, order_id):
138 order = get_object_or_404(Order, pk=order_id, user=request.user)
139 intent = stripe.PaymentIntent.retrieve(order.payment_intent_id)
140 metadata = intent["metadata"]
141 currency = metadata["currency"]
142 order.mark_paid(amount=intent["amount"], currency=currency)
143 return redirect("orders:receipt", order_id=order.pk)
Local variables
order_id48213
metadata{}
intent.id"pi_3QxT8eLk2rN0aB"
Explain this frame
django/contrib/auth/decorators.py in _wrapper_viewline 23library
django/core/handlers/base.py in _get_responseline 197library
AI triage4m ago · high confidence

confirm_payment reads metadata["currency"] with no fallback. In these events the intent's metadata is empty, so line 141 raises.

Root cause

Commit a1c9e42 added this read in release 2.14.0. It assumes every payment intent carries a currency in its metadata, and the failing events show intents that don't.

Suggested fixes
1Fall back to the order's currency when the key is missing.
2Find the code paths that create an intent without currency in its metadata.
Ask a follow-up
Who should own this?What else is related?Write a status update
Fix ready for reviewpending
orders/views.py +4 −1Falls back to the order's currency and logs a warning when the key is missing.
Review fix
Suspect commitline 141
NL
Move currency to intent metadataa1c9e42 · Nick Langat · 2d ago

Approve the fix it drafts and Watchdock opens the pull request. Alerts reach Slack, email or your phone.

Features

The check, the alert, the logs, the patch and the status page are one product, so the context follows the incident instead of being pasted into Slack.

Error tracking

Grouped exceptions with the stack trace, release and commit behind them.

AI triage

Root cause, owner and a draft fix for new issues.

Uptime monitors

HTTP checks with SSL expiry, as often as every minute.

Servers

CPU, memory, disk and nginx traffic from a lightweight agent.

Containers

Docker status, health checks, restarts and memory per container.

Logs

Structured logs, grouped by template and linked to the errors they precede.

Status pages

A public page that updates itself when a monitor goes down.

Alerting

Slack, email, webhooks and push, set per project and environment.

Pricing

Start free. Upgrade when the errors are worth more than the plan.

Hobby

For side projects and personal servers
$0/ month
Free forever · no card
Start free
Includes
2 projects · 2 servers · 3 seats
5K error events / month
5 HTTP checks, every 10 min
10K log lines / month
7-day retention
Email alerts

Pro

For indie developers and small startups
$49/ month
Billed monthly
Start with Pro
Everything in Hobby, plus
5 projects · 10 servers · 10 seats
50K error events / month
50 HTTP checks, every 5 min
Nginx logs, SSL checks, container logs and actions
AI assistant · 500 questions / month
Slack alerts, WhatsApp for uptime
Status pages and GitHub integration
30-day retention

Team

AI triage
For growing teams with production infrastructure
$79/ month
Billed monthly
Start with Team
Everything in Pro, plus
20 projects · 100 servers · 50 seats
500K error events / month
500 HTTP checks, every minute
AI triage agent · 500 runs / month
Unlimited AI assistant
On-call paging and webhooks
White-label status pages · API
90-day retention · priority support

Prices in USD. VAT added at checkout where it applies.

Your next error is already on its way.

A few lines in settings.py and Watchdock is reading your stack traces before the first deploy finishes.

Free forever on Hobby · no card needed
1# pip install watchdock-errors
2import watchdock_errors
3
4watchdock_errors.init(api_key="wdk_…", environment="production")
5
6INSTALLED_APPS += ["watchdock_errors.integrations.django"]