Skip to content

excluding html from error description, using error header for logging#16331

Open
mgosz-guardian wants to merge 4 commits into
mainfrom
email-endpoint-logs-improvements
Open

excluding html from error description, using error header for logging#16331
mgosz-guardian wants to merge 4 commits into
mainfrom
email-endpoint-logs-improvements

Conversation

@mgosz-guardian

@mgosz-guardian mgosz-guardian commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

What does this change?

This change improves newsletter signup failure tracking in both signup flows. It uses a shared helper to extract structured failure details, prefers an Email-Signup-Error-Code response header when present, and otherwise falls back to a short error description capped at 60 characters.

Why?

The logger was consistently returning HTML as the error description because the failure responses were coming back as HTML. This is something I am currently investigating.

@mgosz-guardian mgosz-guardian added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

@mgosz-guardian mgosz-guardian added the run_chromatic Runs chromatic when label is applied label Jul 7, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant