microsoft / microsoft/BotFramework-DirectLineJS

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

Đang mở
#434 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
TypeScript
Star
199
Fork
133
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với tài liệu về URI cơ sở của Direct Line REST API được tham chiếu trong báo cáo, sau đó so sánh endpoint tạo token với endpoint POST của cuộc hội thoại và phản hồi RegionNotAllowed của endpoint này. Tái tạo yêu cầu bằng các URL được liệt kê và xác nhận endpoint theo khu vực nào được chấp nhận; được xem là hoàn tất khi đã ghi lại nguyên nhân và cách giải quyết đã được xác nhận, hoặc xác định rằng vấn đề nằm ngoài thư viện client này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript
Lĩnh vực
api
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.