+
95
-

coze Webhook URL发送触发器报错:{"code":41001004,"data":{"items":[]},"items":[],"message":"RecordNotFound:Pl

coze Webhook URL发送触发器报错:

{"code":41001004,"data":{"items":[]},"items":[],"message":"RecordNotFound:Please CONFIRM PUBLISHED"}

这个是什么问题,我也按照官方的文档做了,也发布了bot,还是出现这个错误。

800_auto

<?php
    
$url = 'https://api.coze.com/api/trigger/v1/webhook/biz_id/bot_platform/hook/';
$authorization = '';

$postData = json_encode(["testname"=>"你是谁?"],true);
    
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Authorization: Bearer ' . $authorization));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    
$response  = curl_exec($ch);
    
curl_close($ch);
echo $response;
    
?>


网友回复

+
15
-

最好去官方社区文档看一下有没有这个错误的解释。

我知道答案,我要回答