Hi Jeppe, I would assume that the parsing of the plan fails here: https://github.com/apache/incubator-wayang/blob/295b624f6158d5cb914a90c620dac6aff1c135b2/wayang-api/wayang-api-json/src/main/scala/parserutil/ParsePlanFromJson.scala#L43
I agree, it should return a useful error message, which shouldn't be too big of a change. I hope this pointer helps. Best, Juri ________________________________ From: Jeppe Nordvi Halvorsen <h...@itu.dk.INVALID> Sent: 03 April 2025 15:51 To: dev@wayang.apache.org <dev@wayang.apache.org> Cc: Christoffer Emil Kristensen <c...@itu.dk> Subject: JSON API error messages You don't often get email from h...@itu.dk.invalid. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hello, Currently for a Project we are attempting to run Wayang plans using the JSON API, The endpoint works with a proper JSON, but when executing faulty plan it would be nice to receive an error message, but currently it only gives a 404. I've looked into wayang-api-json/src/main/scala/Main as it is here the jsonRoute is stored, but it seems whenever I attempt to add prints to debug it never seems to reach the else clause when failing (below), only printing the stack trace to console, though idk if this happens in some other file. Any ideas how this could be solved? [cid:f1c9f329-cfdc-43df-a223-ef2c92867a6b] Best regards, Jeppe Halvorsen