SDKs connection

Problem

Impossible to connect to a private server instance via the python-app-sdk or node-app-sdk.

This  is caused by our proxies settings that have different a Application-Layer Property Negotiation (ALPN) which in association with the standard gRPC implementation make secure connection over HTTP/2 impossible. This standard library is used in most gRPC library and that include the node library and the python library but not the Golang or Java ones

Solution


  1. Use an insecure connection

    node-app-sdk
    var ttn = require("ttn")
    var fs = require("fs")
    
    const privNS = "domain-id:1900"
    const privappID = "myApp"
    const privaccessKey = "myApp.key"
    
    ttn.data(privappID, privaccessKey, {
        address: privNS,
        insecure: false,
    })
  2. Use the Golang SDK or Java SDK