Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6884

[Python][Flight] Make server-side RPC exceptions more friendly?

    XMLWordPrintableJSON

Details

    Description

      Here is what an error looks like when a client RPC fails in the server

      E   pyarrow.lib.ArrowException: Unknown error: gRPC returned unknown error, with message: a bytes-like object is required, not 'str'
      E   In ../src/arrow/python/flight.cc, line 201, code: CheckPyError(). Detail: Python exception: TypeError
      

      The "line 201, code:" business is added by -DARROW_EXTRA_ERROR_CONTEXT=ON so the normal use won't see this

      It might be nice to re-raise the same exception type in the client with some extra context added to make clear that it is a server-side error

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m