I am trying to run the sample using docker.
From the readme, docker run --rm -p 50051:50051 authzed/spicedb serve --grpc-preshared-key lovelycoconuts
The image runs but the sample breaks when trying to connect and do a check permission:
var permission = await client.CheckPermissionAsync(...);
Exception is:
Grpc.Core.RpcException: Status(StatusCode="Unimplemented", Detail="unknown service authzed.api.v1.PermissionsService")
at Program.<>c__DisplayClass0_0.<<
$>b__2>d.MoveNext() in D:\Learn\Authzed\authzed-dotnet\examples\protected-api\Api\Program.cs:line 66
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Http.RequestDelegateFactory.ExecuteTaskResult[T](Task`1 task, HttpContext httpContext)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
I am trying to run the sample using docker.
From the readme, docker run --rm -p 50051:50051 authzed/spicedb serve --grpc-preshared-key lovelycoconuts
The image runs but the sample breaks when trying to connect and do a check permission:
var permission = await client.CheckPermissionAsync(...);
Exception is:
$>b__2>d.MoveNext() in D:\Learn\Authzed\authzed-dotnet\examples\protected-api\Api\Program.cs:line 66Grpc.Core.RpcException: Status(StatusCode="Unimplemented", Detail="unknown service authzed.api.v1.PermissionsService")
at Program.<>c__DisplayClass0_0.<<
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Http.RequestDelegateFactory.ExecuteTaskResult[T](Task`1 task, HttpContext httpContext)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)