Search code examples
phpjavascriptopentok

OpenTok No Reply From Server


I am trying to generate session Ids for users on a website using opentok.

I am using a tutorial from the opentok website to create the session id (https://github.com/opentok/Opentok-PHP-SDK).

The problem is that when I run the code, the website keeps on loading and no reply from the server is occurring.


Solution

  • I fixed the problem by commenting out these lines from OpenTokSDK.php

    foreach($data as $key => $value)
    {
        $value = urlencode($value);
        $dataString .= "$key=$value&";
    }