Skip to content

EjrApiResponseError: improve error message #418

@bossie

Description

@bossie

Context: I forgot to add a field to the EJR API so batch jobs broke; in particular, starting a batch job made OpenEO return this 500 error in response to a 400 from the EJR API:

openeo.rest.OpenEoApiError: [500] Internal: Server error: EjrApiResponseError('Error communicating with batch job system, consider trying again. Details: 400 'Bad Request' on PATCH \'https://jobregistry.vgt.vito.be/jobs/j-2507162224414dd5ae34b7bee23d713a\': {"statusCode":400,"message":["property results_metadata_uri should not exist"],"error":"Bad Request"}') (ref: r-250716222441465198d52a399903d41c)

The error message suggests to try again but this is obviously not going to work in this case. A better approach could be to adapt this response message (and status code) to the one that we get back from the EJR API.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions