Skip to content

Payment fix - #208

Open
OlegPhenomenon wants to merge 3 commits into
masterfrom
payment-fix
Open

OlegPhenomenon wants to merge 3 commits into
masterfrom
payment-fix

Conversation

@OlegPhenomenon

Copy link
Copy Markdown
Contributor

No description provided.

OlegPhenomenon and others added 2 commits June 15, 2026 13:14
API payment requests (format: json) triggered MissingTemplate inside the
exceptions_app handler because ErrorsController only rendered HTML and only
the 403 template existed. This masked the real exception behind a failsafe
error.

- Make ErrorsController#show format-aware: render JSON for json/any formats,
  HTML for html
- Add missing 401/404/500 templates
- Log the underlying exception (cause) with backtrace so the real root cause
  is no longer swallowed

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Deploy Complete!

Property Value
App billing
Slot 1
URL https://billing1-dev.cloud.tld.ee
Namespace billing1-dev

(Environment ready for testing)

Add explicit request logging to trace whether registry/registrar requests
actually reach this billing instance and with what data:

- ApplicationController: log every incoming API request (method, path, host,
  request_id, initiator, params) before authorization
- InvoiceNumberGeneratorController: log generated number, configured range and
  actual db max
- InvoiceGeneratorController: log create start/saved, and surface previously
  swallowed errors as logger.error + backtrace
- OneoffController: log start (with found_in_db check) and outcome (ok/rejected)

Diagnostic aid for the "invoice not found on oneoff" investigation.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Deploy Complete!

Property Value
App billing
Slot 1
URL https://billing1-dev.cloud.tld.ee
Namespace billing1-dev

(Environment ready for testing)

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