Clarifai PHP/GRPC - Code 14: failed to connect to all addresses

ghz 1years ago ⋅ 6648 views

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.

Let me know if that helped!