Skip to content

Handle BaseFHIRError in handlers#97

Merged
ruscoder merged 5 commits intomasterfrom
base-fhir-error-handling
Mar 28, 2026
Merged

Handle BaseFHIRError in handlers#97
ruscoder merged 5 commits intomasterfrom
base-fhir-error-handling

Conversation

@ruscoder
Copy link
Copy Markdown
Member

Usually Aidbox returns meaningful message, but we do not handle BaseFHIRError (ResourceNotFound and etc).

This PR helps to solve it while beda-software/fhir-py#153 is not fixed

@ruscoder ruscoder merged commit 37e4e65 into master Mar 28, 2026
8 checks passed
@ruscoder
Copy link
Copy Markdown
Member Author

Reverting this — mapping all exceptions for fhirpy client to OperationOutcome is a bad idea because it would expose raw server responses (response.text) through the API, potentially leaking internal implementation details.

ruscoder added a commit that referenced this pull request Mar 29, 2026
@ruscoder ruscoder mentioned this pull request Mar 29, 2026
ruscoder added a commit that referenced this pull request Mar 29, 2026
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