grpc-error-status

Decodes grpc-status-details-bin content

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
grpc-error-status
1.0.14 years ago4 years agoMinified + gzip package size for grpc-error-status in KB

Readme

grpc-error-status
Build Status
Install package:
npm install grpc-error-status --save
Working with gRPC errors made easy:
const grpcStatus = require('grpc-error-status');

client.sayHello({name: 'you'}, (err, resp) => {
  const status = grpcStatus.parse(err);
  if (status != null) {
    console.log(status.toObject());
    return;
  }
  console.log('Greeting:', response.message);
});
All required types are included. See ``protos/google/rpc/*.proto`` to find possible types of error details and Status structure.