You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user does blueapi controller run <...>, getting a message which simply says "Error 422" is not very helpful. The server does define error response detail, this should be printed in the console.
I looked into using built-in fastapi functionality to provide clearer error messages from the server but ran into an upstream issue, discussion here: fastapi/fastapi#13278 (reply in thread)
Activity
callumforrester commentedon Nov 29, 2024
@stan-dot has previously expressed a preference for terse output, maybe we should just add a
--verboseflag and let the user decide?stan-dot commentedon Nov 29, 2024
I believe this is the connected issue
#206
where in the comment thread we've got this
#206 (comment)
and the PR has this:

fwiw we could add formatting like in here: https://github.com/DiamondLightSource/blueapi/pull/527/files
d-perl commentedon Nov 29, 2024
Sure, I'm ok if it's behind a flag, I just don't want to have to run the server in a debugger just to find out how my params are wrong
callumforrester commentedon Jan 31, 2025
I looked into using built-in fastapi functionality to provide clearer error messages from the server but ran into an upstream issue, discussion here: fastapi/fastapi#13278 (reply in thread)