Skip to content

front: handle RaiMI errors with forwarded status #16711

Open
Synar wants to merge 1 commit into
devfrom
ali/handle-forwarded-errors-from-raimi
Open

front: handle RaiMI errors with forwarded status #16711
Synar wants to merge 1 commit into
devfrom
ali/handle-forwarded-errors-from-raimi

Conversation

@Synar
Copy link
Copy Markdown
Contributor

@Synar Synar commented May 12, 2026

Close #14865

We handled most of RaiMI errors correctly, as they were of the form "detail": string.

However when RaiMI was forwarding a status it received to the front, it instead uses the format "detail": {"error": string, "status_code": number}, which we did not handle well.

Before this pr:
image

After this pr (please don't pay attention to the language of the header or the error box size, only to the error message):
image

Signed-off-by: Alice Khoudli <alice.khoudli@polytechnique.org>
@Synar Synar requested a review from a team as a code owner May 12, 2026 15:47
@github-actions github-actions Bot added the area:front Work on Standard OSRD Interface modules label May 12, 2026
@Synar Synar requested review from Uriel-Sautron and kmer2016 May 12, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:front Work on Standard OSRD Interface modules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify RaiMI error message

1 participant