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?
-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/grpc-io/4b2dcec4-356c-4b77-aca2-83b9c93622bfn%40googlegroups.com.

Reply via email to