Skip to content

Read server error codes from err.parsed - #293

Open
ttonyxx wants to merge 1 commit into
mainfrom
fix/frontend-error-codes
Open

ttonyxx wants to merge 1 commit into
mainfrom
fix/frontend-error-codes

Conversation

@ttonyxx

@ttonyxx ttonyxx commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

fetch_utils puts the parsed error body on err.parsed, but six callers read err.error, which is always undefined. As a result:

  • Dead event, group, and sign-up links didn't show "The specified event does not exist!" or redirect home.
  • A wrong Apple ID password got the generic error message.
  • Missing contacts permission wasn't detected.

Testing

  • npm run test:unit (16/16) and npm run build pass.
  • Checked in the browser against a local server: dead /e/ and /g/ links now show the error and redirect home. The Apple and contacts cases were checked by reading the code.

🤖 Generated with Claude Code

fetch_utils puts the parsed error body on err.parsed, but six callers
read err.error, which is always undefined. Dead event, group, and
sign-up links didn't show "The specified event does not exist!" or
redirect home, a wrong Apple ID password got the generic error, and
missing contacts permission wasn't detected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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