第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我該如何解決這個解碼和語法錯誤

我該如何解決這個解碼和語法錯誤

PHP
繁星淼淼 2023-12-15 16:11:58
我的 php 腳本有問題。 (我和我的朋友寫這篇文章,對錯誤表示歉意) 這是向我展示的錯誤:致命錯誤:未捕獲 InvalidArgumentException:json_decode 錯誤: 語法錯誤在 /opt/html/wordpress_eagle/forums/vendor/guzzlehttp/guzzle/src/functions.php:306堆棧跟蹤:#0 /opt/html/wordpress_eagle/forums/vendor/restcord/restcord/src/DiscordClient.php(229): GuzzleHttp\json_decode('')#1 /opt/html/wordpress_eagle/forums/vendor/restcord/restcord/src/DiscordClient.php(184): RestCord\DiscordClient->convertResponseToResult('guild', Array, 對象(GuzzleHttp\Psr7\Response),對象(GuzzleHttp\Command\Command))#2 /opt/html/wordpress_eagle/forums/vendor/guzzlehttp/command/src/ServiceClient.php(215): RestCord\DiscordClient->RestCord{closure}(對象(GuzzleHttp\Psr7\Response), 對象(GuzzleHttp\Psr7\Request),對象(GuzzleHttp\Command\Command))#3 /opt/html/wordpress_eagle/forums/vendor/guzzlehttp/command/src/ServiceClient.php(177): GuzzleHttp\Command\ServiceClient->transformResponseToResult(Object(GuzzleHttp\Psr7\Response), 對象(GuzzleHttp\Psr7\Request),對象(GuzzleHttp\Command\Command))#4 [內(nèi)部函數(shù)]:/opt/html/wordpress_eagle/forums/vendor/guzzlehttp/command/src/Exception/CommandException.php 中的 GuzzleHtt 第 57 行這是 json_decode 拋出錯誤 GuzzleHttp/src/functions.php 的地方: https://github.com/guzzle/guzzle/blob/4.1.0/src/functions.php#L305* * @param string $json    JSON data to parse * @param bool $assoc     When true, returned objects will be converted *                        into associative arrays. * @param int    $depth   User specified recursion depth. * @param int    $options Bitmask of JSON decode options. * * @return mixed * @throws \InvalidArgumentException if the JSON cannot be decoded. * @link http://www.php.net/manual/en/function.json-decode.php */ 
查看完整描述

1 回答

?
Smart貓小萌

TA貢獻1911條經(jīng)驗 獲得超7個贊

解決方案:我使用的是舊的 API,我用新的 Restcord 替換了舊的 Restcord,現(xiàn)在一切正常。



查看完整回答
反對 回復 2023-12-15
  • 1 回答
  • 0 關注
  • 224 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號