Skip to content

Unable to connect to server - 14 UNAVAILABLE: Trying to connect an http1.x server #38

@labs20

Description

@labs20

Hi. Runing DGraph 1.0.5, dgraph-js 1.2.1 and grpc 1.12.3.

Working with everything installed until now at my own machine (Mac Air), all good, no problems. Installed a new server on a windows machine to centralize things and when I try to connect to it I got this error:

Error: 14 UNAVAILABLE: Trying to connect an http1.x server

My test function:

async test(){
        const dgraph = require("dgraph-js")
            , grpc = require("grpc")
            , clientStub = new dgraph.DgraphClientStub(
                "192.168.0.253:8080", grpc.credentials.createInsecure()
            )
            , dgraphClient = new dgraph.DgraphClient(clientStub)
        ;

        let res = await dgraphClient.newTxn().query(`
                {
                    query(func: has(__is_pessoas), first: 10){
                      uid
                      app
                      descricao
                    }
                }
            `)
            , ppl = res.getJson()
        ;
    }

If I start ratel locally on my mac and try to connect to that same address with it, it works with no problems.

To clarify: I have a dev node environment on my mac, and I'm trying to connect it to a DGraph server on a windows machine on my network, that should be like a central database for al devs, and the the error ocourrs.

Help, please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions