[#357] API not responding

Migrated from Redmine #357 | Author: Javier Escribano
Status: New | Priority: Immediate, there is BUG! | Created: 2019-03-12


Hi, I’m getting this error intermitenly since 2 hours ago:

SSL: Handshake timed out

when I do a request against the Simply book me API. Sometimes works and sometimes launches that error.

[2019-03-12 09:33:15] local.INFO: {“method”:“getStartTimeMatrix”,“params”:[“27-03-2019”,“27-03-2019”,2,7],“id”:1}
[2019-03-12 09:34:15] local.INFO: ErrorException: file_get_contents(): SSL: Handshake timed

Redmine Admin wrote:

What is API endpoint you are trying to use?

Javier Escribano wrote:

Redmine Admin wrote:

What is API endpoint you are trying to use?

$loginClient = new JsonRpcClient(‘https://user-api.simplybook.me’.‘/login’);
$token = $loginClient->getToken(‘yoursmiledirect’, env(‘SIMPLYBOOK_KEY’));

    $this->client = new JsonRpcClient('https://user-api.simplybook.me'.'/', [
        'headers' => [
            'X-Company-Login: '.'yoursmiledirect',
            'X-Token: '.$token,
        ],

Redmine Admin wrote:

there is some problem in your code, https://user-api.simplybook.me/ is working fine