Coder Social home page Coder Social logo

Run test error about aiogrpc HOT 6 CLOSED

yutiansut avatar yutiansut commented on August 16, 2024
Run test error

from aiogrpc.

Comments (6)

hubo1016 avatar hubo1016 commented on August 16, 2024 2

This is a correct behavior. This test case covers the situation when the request stream or response stream raises an exception inside the iteration. When these exceptions occur, grpc.io core generates this log.

It might be possible to drop this log with a customized logger, but maybe it is not necessary?

from aiogrpc.

yutiansut avatar yutiansut commented on August 16, 2024
PS C:\QA\aiogrpc> & python c:/QA/aiogrpc/tests/server.py
Server created on ['127.0.0.1:9901']
Server started
ERROR:root:Exception calling application: TestException
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\grpc\_server.py", line 383, in _call_behavior
    return behavior(argument, context), True
  File "c:/QA/aiogrpc/tests/server.py", line 40, in ExceptionMethod
    raise ValueError("TestException")
ValueError: TestException
ERROR:root:Exception calling application: TestException
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\grpc\_server.py", line 383, in _call_behavior
    return behavior(argument, context), True
  File "c:/QA/aiogrpc/tests/server.py", line 40, in ExceptionMethod
    raise ValueError("TestException")
ValueError: TestException
Quit server

from aiogrpc.

yutiansut avatar yutiansut commented on August 16, 2024

wow I understand.~ maybe print a tip would be better~( • ̀ω•́ )✧

from aiogrpc.

hubo1016 avatar hubo1016 commented on August 16, 2024

Maybe we can modify the message to "Testing raising an exception inside GRPC service"?

from aiogrpc.

hubo1016 avatar hubo1016 commented on August 16, 2024

Feel free to create a pull request, or I can do it myself later.

from aiogrpc.

hubo1016 avatar hubo1016 commented on August 16, 2024

fixed by a367421

from aiogrpc.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.