Skip to content

unable to use grpc reflection when health checks configured #10844

@cgeers

Description

@cgeers

Is there an existing issue for this?

  • I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

When using postman to interrogate a grpc server's exposed services via reflection, an "unkown error" is reported if the default health check service is enabled. Digging around in the logs, from logs/renderer-requester.log I see:

[1424][1649863276559][requester][error][{"name":"Error","message":"unknown error","stack":"Error
    at ClientDuplexStreamImpl.dataCallback (/Applications/Postman.app/Contents/Resources/app.asar/node_modules/grpc-reflection-js/build/src/client.js:111:28)
    at ClientDuplexStreamImpl.emit (events.js:315:20)
    at ClientDuplexStreamImpl.EventEmitter.emit (domain.js:467:12)
    at addChunk (internal/streams/readable.js:309:12)
    at readableAddChunk (internal/streams/readable.js:284:9)
    at ClientDuplexStreamImpl.Readable.push (internal/streams/readable.js:223:10)
    at Object.onReceiveMessage (/Applications/Postman.app/Contents/Resources/app.asar/node_modules/@grpc/grpc-js/build/src/client.js:382:24)
    at Object.onReceiveMessage (/Applications/Postman.app/Contents/Resources/app.asar/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:291:178)
    at /Applications/Postman.app/Contents/Resources/app.asar/node_modules/@grpc/grpc-js/build/src/call-stream.js:217:74
    at processTicksAndRejections (internal/process/task_queues.js:75:11)"}]

The default and service specific health checks appear to be working properly when using other client utilities (grpcurl, grpc_cli, etc.) but postman seems to have trouble with it.

Steps To Reproduce

  • have a grpc server that utilizes grpc::EnableDefaultHealthCheckService(true);
  • using postman, create new grpc request, enter url and choose "use server reflection".
  • observe error

Screenshots or Videos

Screen Shot 2022-04-13 at 12 10 40 PM

Operating System

macOS

Postman Version

9.15.13

Postman Platform

Postman App

Additional Context?

when disabling health checks, using postman grpc server reflection appears to work well.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions