carlessistare / grpc-promise

GRPC promisify module for all Request/Response types: standard and stream
MIT License
82 stars 17 forks source link

Type Error crashes promisify. #2

Closed LibertyBeta closed 7 years ago

LibertyBeta commented 7 years ago

With the most recent grpc update the library now crashes with the error

TypeError: requestTypes[originalFunction.name] is not a function

carlessistare commented 7 years ago

Thanks for the input @LibertyBeta , I'll work on it as soon as possible

jrejaud commented 7 years ago

I've also run into this issue, I am using version 1.4.1 of gRPC's Node dependency. Thank you for creating this library @carlessistare

TypeError: requestTypes[originalFunction.name] is not a function
    at /.../node_modules/grpc-promise/lib/index.js:6:63
    at Array.forEach (native)
    at Object.promisifyAll (/.../node_modules/grpc-promise/lib/index.js:4:46)
carlessistare commented 7 years ago

Working on it @jrejaud thanks for your feedback