TheThingsArchive / node-app-sdk

The Things Network Application SDK for Node.JS
https://www.thethingsnetwork.org/docs/node-js/
MIT License
41 stars 28 forks source link

grpc.default.credentials.createSsl() type error #68

Closed noerw closed 7 years ago

noerw commented 7 years ago
import * as ttn from 'ttn' // ttn@2.2.2
app = await ttn.application('my-app', 'mytoken') // my-app is registered at public eu handler

results in TypeError: createSsl's first argument must be a Buffer

When running Buffer.from(certificate, 'utf8') in the ApplicationClient constructor I get Could not get common name of subject from certificate.

romeovs commented 7 years ago

Thanks for the report! I'm looking into it.

romeovs commented 7 years ago

@noerw This should be fixed in2.2.4, can you confirm?

noerw commented 7 years ago

indeed, thanks!