Qnquro
unread,Dec 2, 2024, 11:39:00 AMDec 2Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?