【发布时间】:2021-04-07 02:17:54
【问题描述】:
我正在尝试创建一个 GotoWebinar webhook,但每次都会收到 400 个错误请求
这是我的 callBackUrl 函数
Route::get('g2w/webhook', function(Request $request) {
return response()->json([
'success'=>true
],200);
});
这是我发给https://api.getgo.com/G2W/rest/v2/webhooks的post webhook创建请求
[
{
"callbackUrl":"https://website.com/g2w/webhook/",
"eventName":"webinar.created",
"eventVersion":"1.0.0",
"product":"g2w"
}
]
我总是得到这个错误
{
"timestamp": 1609341614915,
"status": 400,
"error": "Bad Request",
"exception": "com.logmein.webhooks.exceptions.InvalidRequestException",
"message": "Invalid callbackUrl. callbackUrl not returning 200 OK as response. Please retry after sometime",
"path": "/v1/webhooks"
}
GotoWebinar webhooks documentation
感谢您的帮助
【问题讨论】: