2015-11-28 46 views
2

在laravel我使用Leaguewrap庫做出與此代碼在手柄(命令) [GuzzleHttp \例外\申請豁免] 錯誤創建資源:[消息]的fopen(https://global.api.pvp.net/api/lol/static-data/na/v1.2/realm?api_key=xxx):未能打開流:連接嘗試失敗,因爲在一定 時間後對方沒有正確響應或連接失敗,那裏連接主機沒有響應。 [文件] \廠商\ guzzlehttp \狂飲\ SRC \處理程序\ StreamHandler.php [線路] 244Guzzlehttp errorwhen開放流

[RuntimeException的] 錯誤創建資源:[消息]的fopen(https://global.api.pvp.net/api/lol/static-data/na/v1.2/realm?api_key=xxx):未能打開流:連接嘗試失敗,因爲一段時間後,對方卻 響應不正確,或已建立的連接失敗,因爲連接的主機沒有反應。 [文件] \供應商\ guzzlehttp \狂飲的\ src \處理器\ StreamHandler.php [行] 244

我不明白,因爲當我複製確切的網址,並在瀏覽器中打開它,它的工作原理:

{"css":"5.23.1","dd":"5.23.1","l":"en_US","n":{"item":"5.23.1","rune":"5.23.1","mastery":"5.23.1","summoner":"5.23.1","champion":"5.23.1","profileicon":"5.23.1","map":"5.23.1","language":"5.23.1"},"profileiconmax":28,"v":"5.23.1","lg":"5.23.1","cdn":"http://ddragon.leagueoflegends.com/cdn"} 

如何解決這個問題的任何想法?

回答

0

的問題,我是怎麼用laravel家園就跑流浪漢框外的命令。使用SSH連接到機器,然後運行裏面的命令正常工作。