Skip to content

Received RpcError is always code 2: Incomplete response #1479

@WindFreaker

Description

@WindFreaker

Hi, I am struggling to send error information from my Tonic gRPC server to my gRPC web client. Every time I receive an RpcError on the client, it always comes out as code 2 with the message "Incomplete response".

Here is a snippet of my client code (in case I am doing anything glaringly wrong):

client.beginRegistration(request, {}, async (err, response) => {

	if (err) {
		console.log(`Error: ${err.message}`);
	}

	...

}

However when I inspect the network information for the request, I see headers that contain my error information.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions