iT邦幫忙

0

line api Webhook驗證問題

各位大大好,最近想做line api呼叫發生錯誤訊息,詳細資訊如下

已完成下方步驟
1.使用安裝SSL憑證於IIS
https://www.win-acme.com/
2.範例程式碼 參考下方文章
http://studyhost.blogspot.com/2018/01/index-clinebot.html
3.開啟line api webhook => enable
4.https網址正常

點選[Verify]出現錯誤訊息,An error occurred when sending the webhook

請問這會是什麼問題?

========================
使用測試網址產生的webhook URL==> 成功可以呼叫使用
https://isbaas.azurewebsites.net/api/LineWebHook?key=677510db-c204-46a0-9c72-d74ffac7e51c

經過下午確認為SSL驗證問題... 感謝兩位大大回覆

看更多先前的討論...收起先前的討論...
基本上出現這個訊息就是証書沒配置好了。
這要先看你的証書是哪邊申請的,並先試試用瀏覽器可否正常運做。
dragonH iT邦超人 5 級 ‧ 2020-05-04 17:29:31 檢舉
你怎麼判斷可以成功呼叫的?

因為我 post

會拿到

{
"Message": "An error has occurred."
}
ilake iT邦新手 5 級 ‧ 2020-07-20 00:07:20 檢舉
你好,請問你解決的 的SSL 驗證問題是什麼問題阿,我也遇到 "An error occurred when sending the webhook", 不過我是架在heroku上,網站也是SSL了。
ilake iT邦新手 5 級 ‧ 2020-07-22 09:47:52 檢舉
結果是 intermediary certificates 的問題,處理完就好了 :)
HI ilake 我是 FQDN的問題
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
anhour
iT邦見習生 ‧ 2021-10-01 16:46:52

一樣,也遇到 "An error occurred when sending the webhook"
一次是免費憑証使用 ZERO SSL,LINE檢測不通過。改 Let's Encrypt 憑証,解決。
一次是防火牆有限定訪問的IP段。改不限定訪問網段解決。

驗證的部分關於 Let's Encrypt , windows 上可以參考這個
https://www.win-acme.com/

我要發表回答

立即登入回答