Skip to content

fix(smoke): send empty JSON body on billing portal probe - #547

Merged
unjica merged 1 commit into
developfrom
fix/smoke-billing-portal-empty-json-body
Jul 18, 2026
Merged

unjica merged 1 commit into
developfrom
fix/smoke-billing-portal-empty-json-body

Conversation

@unjica

@unjica unjica commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Production Sentry FastifyError on POST /api/meta/organizations/:orgId/billing/portal (Body cannot be empty when content-type is set to 'application/json') was caused by scripts/smoke-production.sh sending Content-Type: application/json with no body (curl 8.7.1 during v1.15.2 smoke).
  • Not user-facing: dashboard createBillingPortalAction POSTs without that header/body; portal handler needs no body.
  • Minimal fix: add -d '{}' to the smoke portal curl so Fastify’s JSON parser accepts the request.

Test plan

  • pnpm lint && pnpm test && pnpm build
  • /review-bugbot (no findings)
  • Re-run scripts/smoke-production.sh after merge/deploy and confirm portal step no longer emits this Sentry event (expect 400/404 skip if org has no Stripe customer, not Fastify empty-body 400)

Made with Cursor

Fastify rejects POST with Content-Type application/json and no body,
which produced a handled Sentry FastifyError during v1.15.2 smoke.

Co-authored-by: Cursor <[email protected]>
@unjica
unjica merged commit f38796e into develop Jul 18, 2026
5 of 6 checks passed
@unjica
unjica deleted the fix/smoke-billing-portal-empty-json-body branch July 18, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant