I have a 'small' problem with OpenTok, making it impossible to use.
When I try to create a new session, the system just gets stuck. :(
I've pinpoint the problem to a function called 'createSession', at '/OpenTok/Util/Client.php'.
This is the function:
public function createSession($options)
{
$request = new Request('POST', '/session/create');
try {
$response = $this->client->send($request, [
'debug' => $this->isDebug(),
'form_params' => $this->postFieldsForOptions($options)
]);
$sessionXml = $this->getResponseXml($response);
} catch (\RuntimeException $e) {
// TODO: test if we have a parse exception and handle it, otherwise throw again
throw $e;
} catch (\Exception $e) {
$this->handleException($e);
return;
}
return $sessionXml;
}
And it gets stuck as soon as it tries to send the data to the $response.
The data being sent is:
$this->isDebug() = bool(false);
$this->postFieldsForOptions($options) = Array ( [archiveMode] => manual [p2p.preference] => enabled [api_key] => 46118732 )
At first I thought it was something related to the time being out of synk, affecting the JWT, as described in this post, but I couldn't solve it according to what was described there.
Can anyone please direct me towards the right solution?
Thanks in advance,
Amit.