https://authzed.com logo
#zanzibar
Title
# zanzibar
d

DerShodan

03/21/2022, 3:38 PM
I am now running spicedb locally and trying to use the REST API. Unfortunately any HTTP requests to port 8080 simply respond with the Schema, so I assume it's the gRPC port 50051 I need to talk to. My HTTP client is not happy with the results tho:
Copy code
iex(4)> Authzed.watch()
16:32:49.266 [debug] Connection closed with data left in the buffer: <<0, 0, 6, 4, 0, 0, 0, 0, 0, 0, 5, 0, 0, 64, 0>>
{:error, %Mint.TransportError{reason: :closed}}
{:error, %Mint.TransportError{reason: :closed}}
I cannot find documentation about how to turn on HTTP for my local spicedb https://docs.authzed.com/reference/clients#curl mentions the REST API and links to swagger docs. How can I use those?