error in calling the grpc method.

31 views
Skip to first unread message

Qnquro

unread,
Dec 2, 2024, 11:39:00 AMDec 2
to grpc.io
error in calling the grpc method. I am accessing the fastapi endpoint via the client file to the grpc server using await, that is, literally the request looks like this:
create_category =await client.CreateCategory(
CreateCategoryRequest(
user_id=...,
name_category=...
), timeout=5)
and I get the error:
ERROR:root:Error occurred while calling gRPC CreateCategory method: <AioRpcError of RPC that terminated with:
        status = StatusCode.UNKNOWN
        details = "Unexpected <class 'TypeError'>: creating_and_managing_tasks_Server.CreateCategory() missing 1 required positional argument: 'context'"
        debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2024-12-02T15:40:11.1918499+00:00", grpc_status:2, grpc_message:"Unexpected <class \'TypeError\'>: creating_and_managing_tasks_Server.CreateCategory() missing 1 required positional argument: \'context\'"}"
why?
Reply all
Reply to author
Forward
0 new messages