grpc / grpc/grpc-rust

Exception calling application: No positional arguments allowed with google.protobuf.Empty

Open
#1,389 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
12.5k
Forks
1.3k
Avg merge
4d 7h
Merged PRs (30d)
24

Description

## Bug Report

### Version

[dependencies]
tonic = "0.9.2"
tokio = { version = "1.28.0", features = ["macros", "rt-multi-thread"] }
prost = "0.11.9"
prost-types = "0.11.9"

[build-dependencies]
tonic-build = "0.9.2"

### Platform

archlinux 64 latest

### Description

I have this in my .proto:

```
service GoodService {
rpc NiceRequest (google.protobuf.Empty) returns (GoodResponse) {}
}
```

In Rust:
```
client.nice_request(()).await?;
```

The server is implemented in Python, code generated using latest grpcio.

The error after establishing connection and calling the function:

```
Error: Status { code: Unknown, message: "Exception calling application: No positional arguments allowed", metadata: MetadataMap { headers: {"content-type": "application/grpc"} }, source: None }
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.