Skip to content

Unable to connect to server #49

@avishwakarma

Description

@avishwakarma

I am not able to connect to dgraph using dgraph-js

var clientStub = dgraph.DgraphClientStub(
   ‘127.0.0.1:9080’, // tried all other ports 5080 7080 8080
   grpc.credentials.createInsecure()
 );
var client = dgraph.DgraphClient(clientStub);

console.log(clientStub) // undefined
console.log(client) // undefined

Executed the below commands and dgraph-ratel is working fine

dgraph zero

dgraph alpha --lru_mb 2048 --zero localhost:5080

dgraph-ratel

My dgraph-ratel is connected on localhost:8080

Any idea what I have missed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionSomething requiring a response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions