You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wayang.apache.org by "alisha-1000 (via GitHub)" <gi...@apache.org> on 2026/02/19 18:16:55 UTC
Re: [I] JSON API doesnt return an error mesaage [wayang]
alisha-1000 commented on issue #534:
URL: https://github.com/apache/wayang/issues/534#issuecomment-3929016421
Thanks for reporting this ,
It sounds like the JSON API currently logs the exception to the server terminal but does not propagate a structured error response back to the client when an invalid Wayang plan is submitted. This can make debugging difficult for API consumers.
Ideally, the endpoint should:
Catch plan parsing / validation exceptions
Return a proper HTTP status code (e.g., 400 Bad Request for invalid plans, 500 for internal errors)
Provide a structured JSON error response (e.g., { "error": "...", "details": "..." })
Avoid exposing internal stack traces unless running in debug mode
This would make the API more robust and production-ready.
If you’d like, I can look into adding proper exception handling around the endpoint and implementing consistent error responses.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@wayang.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org