Trying to setup PHP to call SpiceDB. After spendi...
# spicedb
u
Trying to setup PHP to call SpiceDB. After spending hours generating the protobuffer files. I'm now stuck with:
Copy code
Symfony\Component\ErrorHandler\Error\FatalError^ {#11
  #message: "Error: Failed to parse binary descriptor\n"
  #code: 0
  #file: "./src/GPBMetadata/Authzed/Api/V1/Core.php"
  #line: 19
  -error: array:4 [
    "type" => 1
    "message" => "Failed to parse binary descriptor\n"
    "file" => "/Users/www/project/src/GPBMetadata/Authzed/Api/V1/Core.php"
    "line" => 19
  ]
}
Either VSCode is altering the file somehow. Or something else is wrong. Could it be a version mismatch? > protoc --version > libprotoc 3.21.12 > buf --version > 1.27.1 > > "google/protobuf": "^3.24", > "grpc/grpc": "^1.57", I'll give it another try tomorrow. If I give up, I'll just use the REST API instead. But you insist production workload should prefer gRPC so I would really like to find out what's wrong. PHP doesn't get much love in the grpc ecosystem as far as I can tell 😄
5 Views