microsoft / microsoft/BotFramework-DirectLineJS

POST https://directline.botframework.com/v3/directline/conversations 403 (Forbidden)

オープン
#434 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
199
フォーク
133
PR マージ指標
30日以内にマージされた PR はありません

説明

I get this error since last week. Our bot worked fine and suddenly started giving us this error. Until last week we used https://directline.botframework.com/v3/directline/tokens/generate to generate a token. We then switched to https://europe.directline.botframework.com/v3/directline/tokens/generate because our resources (Azure Bot, Web App running the bot, WebApp running the web chat; all F0-tier) were created in West Europe last year but with no success.

The exact error is:

{
    "message": "ajax error 403",
    "xhr": {},
    "request": {
        "async": true,
        "crossDomain": false,
        "withCredentials": false,
        "headers": {
            "Accept": "application/json",
            "Content-Type": "application/json",
            "Authorization": "Bearer <Token>",
            "x-ms-bot-agent": "DirectLine/3.0 (directlinejs; WebChat/4.17.0 (Full) 0.15.5)",
            "X-Requested-With": "XMLHttpRequest"
        },
        "method": "POST",
        "responseType": "json",
        "timeout": 20000,
        "url": "https://directline.botframework.com/v3/directline/conversations",
        "body": "{\"user\":{}}"
    },
    "status": 403,
    "responseType": "json",
    "response": {
        "error": {
            "code": "RegionNotAllowed",
            "message": "The request received in france but target regional bot belongs to europe. Please check BaseURI  https://docs.microsoft.com/azure/bot-service/rest-api/bot-framework-rest-direct-line-3-0-api-reference?view=azure-bot-service-4.0#base-uri."
        }
    }
}

The error states that the request is received in france, but none of our resources were created in france. I already renewed the keys of the directline channel, which did not work.

Any help is appreciated.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

レポートで参照されている Direct Line REST API のベース URI のドキュメントから始め、トークン生成エンドポイントを会話の POST エンドポイントおよびその RegionNotAllowed 応答と比較します。記載されている URL を使ってリクエストを再現し、どのリージョンのエンドポイントが受け入れられるかを確認します。完了の条件は、確認済みの原因と解決策を文書化すること、または問題がこのクライアントライブラリの外部にあると特定することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
api
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。