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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

我該如何解決這個(gè)解碼和語(yǔ)法錯(cuò)誤

我該如何解決這個(gè)解碼和語(yǔ)法錯(cuò)誤

PHP
繁星淼淼 2023-12-15 16:11:58
我的 php 腳本有問(wèn)題。 (我和我的朋友寫(xiě)這篇文章,對(duì)錯(cuò)誤表示歉意) 這是向我展示的錯(cuò)誤:致命錯(cuò)誤:未捕獲 InvalidArgumentException:json_decode 錯(cuò)誤: 語(yǔ)法錯(cuò)誤在 /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, 對(duì)象(GuzzleHttp\Psr7\Response),對(duì)象(GuzzleHttp\Command\Command))#2 /opt/html/wordpress_eagle/forums/vendor/guzzlehttp/command/src/ServiceClient.php(215): RestCord\DiscordClient->RestCord{closure}(對(duì)象(GuzzleHttp\Psr7\Response), 對(duì)象(GuzzleHttp\Psr7\Request),對(duì)象(GuzzleHttp\Command\Command))#3 /opt/html/wordpress_eagle/forums/vendor/guzzlehttp/command/src/ServiceClient.php(177): GuzzleHttp\Command\ServiceClient->transformResponseToResult(Object(GuzzleHttp\Psr7\Response), 對(duì)象(GuzzleHttp\Psr7\Request),對(duì)象(GuzzleHttp\Command\Command))#4 [內(nèi)部函數(shù)]:/opt/html/wordpress_eagle/forums/vendor/guzzlehttp/command/src/Exception/CommandException.php 中的 GuzzleHtt 第 57 行這是 json_decode 拋出錯(cuò)誤 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貢獻(xiàn)1911條經(jīng)驗(yàn) 獲得超7個(gè)贊

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



查看完整回答
反對(duì) 回復(fù) 2023-12-15
  • 1 回答
  • 0 關(guān)注
  • 164 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)