Skip to content

dotnet sample does not work #59

Description

@chriscollinsonwpp

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions