Skip to content

Print the error detail from the cli #733

Closed

Description

@d-perl

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.

Activity

  1. added
    bug
    on Nov 28, 2024
  2. callumforrester commented on Nov 29, 2024

    @callumforrester
    Contributor

    @stan-dot has previously expressed a preference for terse output, maybe we should just add a --verbose flag and let the user decide?

  3. stan-dot commented on Nov 29, 2024

    @stan-dot
    Contributor

    I believe this is the connected issue

    #206

    where in the comment thread we've got this

    #206 (comment)

    and the PR has this:
    image

    fwiw we could add formatting like in here: https://github.com/DiamondLightSource/blueapi/pull/527/files

  4. d-perl commented on Nov 29, 2024

    @d-perl
    ContributorAuthor

    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

  5. added this to the 1.0.0 milestone on Nov 29, 2024
  6. callumforrester commented on Jan 31, 2025

    @callumforrester
    Contributor

    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)

  7. removed this from the 1.0.0 milestone on Mar 21, 2025
  8. linked a pull request that will close this issuefix!: Improve error reporting from CLI #935on May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions