Skip to content

desktop-backend: Stripe webhook 500s and stale URL 503s #7282

Closed

Description

@beastoin

Summary

Two distinct error patterns on desktop-backend Cloud Run service in the last 24h:

  1. 503s on screen-activity sync via stale URL
  2. 500s on Stripe webhook endpoint

Evidence (May 12-13, 2026)

1. Screen-activity 503s

  • Endpoint: /v1/screen-activity/sync
  • URL: desktop-backend-hhibjajaja-uc.a.run.app (old auto-generated Cloud Run URL)
  • HTTP 503 (Service Unavailable)
  • Average latency: 0.8s (fast rejection, not timeout)

The old URL pattern (hhibjajaja-uc.a.run.app) is a legacy Cloud Run auto-generated domain. Clients hitting this URL get 503s — likely because traffic routing has moved to the new URL format (desktop-backend-208440318997.us-central1.run.app).

Root cause: Some desktop clients are still pointing to the old Cloud Run URL. When Cloud Run recycles revisions, the old URL may become unreachable.

Fix: Identify which client version hardcodes the old URL and update it, or ensure both URLs route to the active revision.

2. Stripe webhook 500s

  • Endpoint: /v1/webhooks/stripe
  • URL: desktop-backend-208440318997.us-central1.run.app/v1/webhooks/stripe
  • HTTP 500 (Internal Server Error)
  • Average latency: 3.3s

These are application-level errors on the Stripe webhook handler — the endpoint receives the webhook but fails processing it.

Suggested investigation:

  1. Check application logs for the webhook handler error messages
  2. Verify Stripe webhook signing secret is configured correctly on desktop-backend
  3. Check if specific webhook event types (e.g., checkout.session.completed, customer.subscription.updated) are failing

3. Gemini proxy timeouts (minor)

  • Endpoint: /v1/proxy/gemini/models/...
  • HTTP 504, average latency 300s (Cloud Run timeout)
  • Low volume — Gemini API calls occasionally exceeding timeout

Impact

  • Desktop subscribers may miss subscription state updates if Stripe webhooks fail
  • Desktop clients on old URLs get degraded screen-activity sync
  • Gemini proxy timeouts affect desktop AI features

Activity

  1. added
    bug
    on May 13, 2026
  2. beastoin commented on May 14, 2026

    @beastoin
    CollaboratorAuthor

    Resolved — Fix Deployed and Confirmed

    PR #7284 merged and deployed to production. Post-deployment monitoring (3h, 6 checkpoints) confirms the fix is working:

    • 180 webhooks processed on new revision — zero payment 500s
    • 3 subscription.deleted events handled cleanly (the exact event type that caused the original crashes)
    • 5xx rate at baseline normal (0.008%)
    • No regressions detected

    The Stripe webhook 500s on deleted/missing Firestore users are eliminated.

    by AI for @beastoin

  3. added
    p2
    on May 15, 2026
  4. added a commit that references this issue on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugp2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions