File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @grpc/grpc-js" ,
3
- "version" : " 1.6.10 " ,
3
+ "version" : " 1.6.11 " ,
4
4
"description" : " gRPC Library for Node - pure JS implementation" ,
5
5
"homepage" : " https://grpc.io/" ,
6
6
"repository" : " https://github.com/grpc/grpc-node/tree/master/packages/grpc-js" ,
Original file line number Diff line number Diff line change @@ -488,7 +488,11 @@ export class Http2CallStream implements Call {
488
488
}
489
489
let details = '' ;
490
490
if ( typeof metadataMap [ 'grpc-message' ] === 'string' ) {
491
- details = decodeURI ( metadataMap [ 'grpc-message' ] ) ;
491
+ try {
492
+ details = decodeURI ( metadataMap [ 'grpc-message' ] ) ;
493
+ } catch ( e ) {
494
+ details = metadataMap [ 'grpc-messages' ] as string ;
495
+ }
492
496
metadata . remove ( 'grpc-message' ) ;
493
497
this . trace (
494
498
'received status details string "' + details + '" from server'
You can’t perform that action at this time.
0 commit comments