Skip to content

Handle HTML error responses in dashboard fetch - #76

Merged
vaheed merged 1 commit into
mainfrom
vaheed/fix-502-bad-gateway-error-bkojrq
Sep 20, 2025
Merged

Handle HTML error responses in dashboard fetch#76
vaheed merged 1 commit into
mainfrom
vaheed/fix-502-bad-gateway-error-bkojrq

Conversation

@vaheed

@vaheed vaheed commented Sep 20, 2025

Copy link
Copy Markdown
Owner

Summary

  • centralize JSON fetching in a shared helper that strips HTML error payloads down to readable text
  • update the dashboard data hook to use the new helper so 502 Bad Gateway pages no longer render inside the UI
  • add unit tests covering the sanitisation logic and fetch behaviour

Testing

  • pytest -q
  • npm test

https://chatgpt.com/codex/tasks/task_b_68ce4dc2fe84832da4dbfdf6063e6c95

@vaheed
vaheed merged commit 3364eff into main Sep 20, 2025
4 checks passed
@vaheed
vaheed deleted the vaheed/fix-502-bad-gateway-error-bkojrq branch September 20, 2025 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant