The problem for me was in the version used to compile the proto files. I changed fixed the grpcio-tools==1.64.1 and recompiled the proto files.