阅读背景:

无法解析主人'1511623453.cloud.vimeo.com'

来源:互联网 

Alright... I've chased the trail around the internet for this one, and I'm coming up with nothing.

好吧......我已经在互联网上寻找这条路,我什么也没想到。

Trying to use the PHP Vimeo API to upload videos. I have upload permission on my app, I've got tokens, and client id and secret stuff all set up, and a small myriad of other things that I've put together to make everything work... and... now I'm getting this and I have no idea what to do with it :P

尝试使用PHP Vimeo API上传视频。我有我的应用程序的上传权限,我有令牌,客户端ID和秘密的东西都设置了,还有一小部分其他的东西,我把它们放在一起使一切正常......而且...现在我得到这个,我不知道该怎么办:P

 PHP Fatal error:  Uncaught exception 'Vimeo\Exceptions\VimeoRequestException' with message 'Unable to complete request.[Couldn't resolve host '1511623453.cloud.vimeo.com']' in /home/theo/software-dev/classes/vimeo/src/Vimeo/Vimeo.php:154 Stack trace:
#0 /home/theo/software-dev/classes/vimeo/src/Vimeo/Vimeo.php(396): Vimeo\Vimeo->_request('https://1511623...', Array)
#1 /home/theo/software-dev/classes/vimeo/src/Vimeo/Vimeo.php(320): Vimeo\Vimeo->perform_upload('users/test/outp...', Array)
#2 /home/theo/software-dev/vim_test.php(20): Vimeo\Vimeo->upload('users/test/outp...', false)
#3 {main}   thrown in /home/theo/software-dev/classes/vimeo/src/Vimeo/Vimeo.php on line 154

The upload script is super simple, and I doubt to be the source of the error, though here it is:

上传脚本非常简单,我怀疑是错误的来源,尽管这里是:

  1 <?php
  2 include("./config/vim.php");
  3 require("./classes/vimeo/autoload.php");
  4 
  5 $lib = new \Vimeo\Vimeo($client_id, $client_secret);
  6 
  7 $lib->setToken($token);
  8 
  9 $response = $lib->upload('users/test/output.mp4', false);

Any suggestions or thoughts?

有什么建议或想法?

Thanks!

1 个解决方案

#1


Try and close all the browers on the computer or phone then make sure your api has the lastet version.

尝试并关闭计算机或手机上的所有浏览器,然后确保您的api具有lastet版本。


分享到: