⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@awilfox
Copy link
Member

@awilfox awilfox commented Feb 11, 2026

This way, if a parameter is missing in a request, it is logged as a 400 Bad Request instead of a 500 Internal Server Error.


Inspired by this morning's discussion over the /fees endpoint. TBD: should there be tests added for this?

@awilfox
Copy link
Member Author

awilfox commented Feb 11, 2026

I will fix the test failures, forgot to rebuild the container locally before running rake spec..

Copy link
Contributor

@jason-raitz jason-raitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm once tests pass. If the other exceptions have tests, then this one should as well.

@awilfox awilfox force-pushed the awilfox/param-bad-request branch from 3f665ff to 0085266 Compare February 11, 2026 20:01
This way, if a parameter is missing in a request, it is logged as a
400 Bad Request instead of a 500 Internal Server Error.
@awilfox awilfox force-pushed the awilfox/param-bad-request branch from 0085266 to 27c9926 Compare February 11, 2026 21:32
@awilfox
Copy link
Member Author

awilfox commented Feb 11, 2026

v3: Rebased.

The other exceptions don't seem to have tests, so I think this is good after CI passes.

@awilfox awilfox merged commit 27c9926 into main Feb 11, 2026
5 checks passed
@awilfox awilfox deleted the awilfox/param-bad-request branch February 11, 2026 22:00
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.

2 participants