:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(capture): point the v1 billing-limit error at the billing limits page (#120695)
Eli Reisman183ccc3d0dac
diff --git a/rust/capture/src/v1/error.rs b/rust/capture/src/v1/error.rsindex c514e0ef28a1..09cb6c639325 100644--- a/rust/capture/src/v1/error.rs+++ b/rust/capture/src/v1/error.rs@@ -162,7 +162,7 @@ impl Error {// TODO: turn into a per-error match arm with specific doc linkspub fn error_uri(&self) -> &'static str {match self {- Self::BillingLimitExceeded => "https://posthog.com/docs/billing/limits",+ Self::BillingLimitExceeded => "https://posthog.com/docs/billing/limits-alerts",_ => "https://posthog.com/docs/api",}}@@ -417,7 +417,10 @@ mod tests {let resp = err.into_response();assert_eq!(resp.status(), StatusCode::PAYMENT_REQUIRED);let body = response_body(resp).await;- assert_eq!(body["error_uri"], "https://posthog.com/docs/billing/limits");+ assert_eq!(+ body["error_uri"],+ "https://posthog.com/docs/billing/limits-alerts"+ );}#[tokio::test]