Question
So, I'm having this issue:
response: null
status: {
code: 14
details: failed to connect to all addresses
}
I tried everything that I can think of, but nothing works and I'm out of ideas. Can someone help me? Thanks!
This is the code, like the exemple:
$image = new Image([
'base64' => file_get_contents($_SERVER['DOCUMENT_ROOT'] . $fileData['path'] . $fileData['name']),
]);
$data = new Data([
'image' => $image
]);
$input = new Input([
'data' => $data
]);
$request = new PostModelOutputsRequest([
'user_app_id' => $this->userDataObject, // This is defined above
'model_id' => 'aaa03c23b3724a16a56b629203edc62c', // This is the ID of the publicly available General model.
'inputs' => [$input]
]);
[$response, $status] = $this->client->PostModelOutputs(
$request,
$this->metadata
)->wait();
Answer
Eloisa,
This is most likely to LetsEncrypt SSL certificate expiring.
- What operating system are you using?
- gRPC is planning on fixing the issue on the next release
- At the moment, you can attempt this workaround: https://github.com/grpc/grpc/issues/27532#issuecomment-934006042
- You can also use simple REST calls until the gRPC implementation is fixed
Let me know if that helped!