PHP opentok SDK - startarchive返回错误

时间:2014-08-16 18:44:25

标签: php opentok

当我尝试呼叫时(通过AJAX,在已建立的会话期间,通过一个主持人发布):

$openTok -> startArchive( $sessionId, "My Archive" );

我得到了:

Fatal error: 
Uncaught exception 'Guzzle\Http\Exception\ClientErrorResponseException' with message 'Client error response
[status code] 404
[reason phrase] Not Found
[url] https://api.opentok.com/v2/partner/44937XXX/archive' in F:\2 Workspace\5 Aptana\TokBox\vendor\guzzle\guzzle\src\Guzzle\Http\Exception\BadResponseException.php:43
Stack trace:

 #0 F:\2 Workspace\5 Aptana\TokBox\vendor\guzzle\guzzle\src\Guzzle\Http\Message\Request.php(145): Guzzle\Http\Exception\BadResponseException::factory(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Message\Response))
#1 [internal function]: Guzzle\Http\Message\Request::onRequestError(Object(Guzzle\Common\Event), 'request.error', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#2 F:\2 Workspace\5 Aptana\TokBox\vendor\symfony\event-dispatcher\Symfony\Component\EventDispatcher\EventDispatcher.php(164): call_user_func(Array, Object(Guzzle\Common\Event), 'request.error', Object(Symfony\Component\EventDispatcher\EventDispatcher))
#3 F:\2 Workspace\5 Apt in F:\2 Workspace\5 Aptana\TokBox\vendor\opentok\opentok\src\OpenTok\Util\Client.php on line 200

此外,我试图运行“ Archiving Sample App ”,Archiving正在那里工作!

我做错了什么?为什么我得到“致命错误”? :

1 个答案:

答案 0 :(得分:1)

显然问题在于尝试从localhost运行我的程序。 除了archivization之外,其他所有功能都正常工作,但是当我将程序移动到服务器时,它开始正常工作。