GraphSchemaTools icon indicating copy to clipboard operation
GraphSchemaTools copied to clipboard

[Error] `unknown method Mutate for service api.Dgraph` when running `init-dgraph`

Open SeanDunford opened this issue 5 years ago • 0 comments

Exploring this and i'm noticing that when i run:

./graphschema.sh init-dgraph --schema-file AuthorPosts.graphql --dgraph-alpha "docker.for.mac.localhost:9080"  --force --verbose

I receive:

Installing schema file /data/AuthorPosts.graphql into Dgraph alpha docker.for.mac.localhost:9080.
Reading /data/AuthorPosts.graphql.
Preparing schema.
Generating Dgraph schema.
Connecting to Dgraph docker.for.mac.localhost:9080.
Succesfully connected to docker.for.mac.localhost:9080 (version v20.03.0)
Couldn't read current schema.  Reasons : [ExceptionalError {Exception=RpcException {Status=Status {StatusCode=null, Detail=null}, StatusCode=Internal, Trailers=[], Message="Status(StatusCode=Internal, Detail=\"grpc: error unmarshalling request: proto: wrong wireType = 2 fo…", Data=[], InnerException=null, TargetSite=Void Throw(), StackTrace="   at Grpc.Core.Internal.AsyncCall`2.UnaryCall(TRequest msg)\n   at Grpc.Core.DefaultCallInvoker.Blo…", HelpLink=null, Source="System.Private.CoreLib", HResult=-2146233088}, Reasons=[], Message="Status(StatusCode=Internal, Detail=\"grpc: error unmarshalling request: proto: wrong wireType = 2 fo…", Metadata={}}]
Installing this schema.

Author: bool @index(bool) .
Post: bool @index(bool) .
Like: bool @index(bool) .
author: uid @reverse .
likedPost: uid .
likedBy: uid .
name: string @index(hash) .
level: string .
title: string @index(term) .
text: string @index(fulltext) .
password: password .


Adding GraphSchema failed. Result: IsSuccess='False', Reasons='ExceptionalError with Message='Status(StatusCode=Unimplemented, Detail="unknown method Mutate for service api.Dgraph")', Exception='Grpc.Core.RpcException: Status(StatusCode=Unimplemented, Detail="unknown method Mutate for service api.Dgraph")
   at Grpc.Core.Internal.AsyncCall`2.UnaryCall(TRequest msg)
   at Grpc.Core.DefaultCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method`2 method, String host, CallOptions options, TRequest request)
   at Grpc.Core.Interceptors.InterceptingCallInvoker.<BlockingUnaryCall>b__3_0[TRequest,TResponse](TRequest req, ClientInterceptorContext`2 ctx)
   at Grpc.Core.ClientBase.ClientBaseConfiguration.ClientBaseConfigurationInterceptor.BlockingUnaryCall[TRequest,TResponse](TRequest request, ClientInterceptorContext`2 context, BlockingUnaryCallContinuation`2 continuation)
   at Grpc.Core.Interceptors.InterceptingCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method`2 method, String host, CallOptions options, TRequest request)
   at Api.Dgraph.DgraphClient.Mutate(Mutation request, CallOptions options)
   at Api.Dgraph.DgraphClient.Mutate(Mutation request, Metadata headers, Nullable`1 deadline, CancellationToken cancellationToken)
   at DgraphDotNet.GRPCConnection.Mutate(Mutation mut)
   at DgraphDotNet.Transactions.Transaction.Mutate(Mutation mutation)''

Any suggestions?

SeanDunford avatar May 16 '20 09:05 SeanDunford