gRPC with Node.js

Hi there :wave:,

I’m using the gRPC api on regular basis with Python and it works (very) well.

Now, I’m trying to do the same with Node and failing.

I started with this example: JavaScript examples - ChirpStack open-source LoRaWAN® Network Server documentation

I installed grpc with: npm install @grpc/grpc-js

and wrapper with: npm install @chirpstack/chirpstack-api --save

I got this error:

TypeError: Channel credentials must be a ChannelCredentials object


let deviceService = new device_grpc.DeviceServiceClient

What am I missing?

Hello, I’m doing something like that:

const deviceService = new device_grpc.DeviceServiceClient(

Yes, this is what is proposed in the example , but the error remains…

Any idea or help?

I’m really stucked on this issue.

Maybe you can try to generate nodejs grpc with protobuf, here is the api chirpstack/api/js at master · chirpstack/chirpstack · GitHub

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.