Visual studio 2017 の「C# LINE Bot Application」にて、コンパイル→発行まではうまく行くのですが、
LINE Developers画面の作成したLINEチャネルのwebhookのところにURLを設定し、接続確認で失敗してしまいます。
■エラー内容
**
Webhook が正常ではない HTTP ステータスを返しました。
**
Visual studio内で発行 → 設定画面の接続の検証では成功します。
ちなみにコードは一切いじっていません。
web.configの”channellSecret”と”channelAccessToken”にはLINEチャネルの値をそれぞれコピペしてあります。
webhookのURLは「https://{アプリ名}.azurewebsites.net/api/linemessage」としました。
どこか足りない設定、またはおかしい設定あるでしょうか?
気になる点としては、
1、webhookに設定するURLの後ろにつけるのは「/api/linemessage」でいいか?
2、AzureのデフォルトのURLはhttpだったので、設定画面にてsを追記してhttpsにしたがいいか?
3、visual studio側でコンパイルと発行が成功しているのに、LINEの設定で失敗する事がありえるのか?
以上、よろしくお願いします。
(追記)
Web発行が失敗しているかもしれません。
成功するとWebブラウザ上に成功しましたと英語のメッセージが出るようなのですが、エラーが出ていました。
■エラー内容
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/> </system.web> </configuration>回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/11/28 00:39
2017/11/28 00:51 編集
2017/11/29 01:32
2017/11/29 01:42
2017/11/29 01:52
2017/11/29 02:17
2017/11/29 02:26
2017/11/29 04:37
2017/11/30 03:24
2017/11/30 06:34