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
Returns: An RpcMethodHandler with which the RPC may be serviced if the interceptor chooses to service this RPC, or None otherwise.
Actual Result
ERROR:grpc._cython.cygrpc:Unexpected [AttributeError] raised by servicer method [/helloworld.Greeter/SayHello]
Traceback (most recent call last):
File "src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi", line 689, in grpc._cython.cygrpc._handle_exceptions
File "src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi", line 789, in _handle_rpc
File "src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi", line 383, in _find_method_handler
File "src/python/grpcio/grpc/_cython/_cygrpc/aio/server.pyx.pxi", line 360, in _run_interceptor
File ".direnv/python-3.12/lib/python3.12/site-packages/sentry_sdk/integrations/grpc/aio/server.py", line 33, in intercept_service
if not handler.request_streaming and not handler.response_streaming:
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'request_streaming'
Unexpected <class 'AttributeError'>: 'NoneType' object has no attribute 'request_streaming'
The text was updated successfully, but these errors were encountered:
Hi Sentry team! I created a PR to help communicate the issue better -- happy for you to create your own if that's easier / let me know if you'd like me to fix anything up.
How do you use Sentry?
Sentry Saas (sentry.io)
Version
master
Steps to Reproduce
Call an unimplemented RPC for an gRPC.AIO server using Sentry SDK
Reproducer:
pip install sentry-sdk grpcio grpcio-tools
Run test script:
Expected Result
Expected RPC error
"Method not found!"
Note,
grpc.aio.ServerInterceptors
should returnNone
if they have not serviced the RPC:https://grpc.github.io/grpc/python/grpc_asyncio.html#grpc.aio.ServerInterceptor
Actual Result
The text was updated successfully, but these errors were encountered: