Description
OrchestratorRequest::orchestrate calls the orchestrator with http_errors, which means that a failure response will be returned successfully.
We only check if the body is an array to verify whether it's a successful response, but we could get failure responses which satisfy this condition, such as:
{"error":"Payload too large"}OrchestratorRequest::orchestrate should make better checks to return a successful response or return an error, at least:
- response body is a ZObject
- response body contains a Z22
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist