Skip to content

Handle non-object events safely#46

Merged
japertechnology merged 1 commit into
mainfrom
codex/update-error-handling-in-index.mjs
Sep 2, 2025
Merged

Handle non-object events safely#46
japertechnology merged 1 commit into
mainfrom
codex/update-error-handling-in-index.mjs

Conversation

@japertechnology

Copy link
Copy Markdown
Collaborator

Summary

  • Guard catch block against non-object events before property access
  • Return generic 500 response when event is undefined
  • Add regression test for undefined events

Testing

  • npm test
  • npm run lint

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

@japertechnology japertechnology merged commit 15f2f46 into main Sep 2, 2025
1 check failed
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