Skip to content

Conversation

matthewp
Copy link
Contributor

Changes

Testing

  • Tests added

Docs

N/A, bug fix

When a POST request is made to a non-existent action endpoint, return a 404 response with NOT_FOUND error code instead of throwing an unhandled ActionNotFoundError.

The fix catches ActionNotFoundError in the action handler and returns an ActionError with code 'NOT_FOUND', which automatically serializes to HTTP 404 status via the built-in codeToStatusMap.

Closes #13549
Copy link

changeset-bot bot commented Oct 17, 2025

🦋 Changeset detected

Latest commit: 2cb169b

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Oct 17, 2025
Copy link

codspeed-hq bot commented Oct 17, 2025

CodSpeed Performance Report

Merging #14567 will not alter performance

Comparing action-error (2cb169b) with main (73c5de9)

Summary

✅ 6 untouched

@matthewp matthewp merged commit 94500bb into main Oct 18, 2025
22 checks passed
@matthewp matthewp deleted the action-error branch October 18, 2025 15:35
@astrobot-houston astrobot-houston mentioned this pull request Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way of catching: [ERROR] ActionNotFoundError: The server received a request for an action named .......... but could not find a match.

2 participants