POST https://directline.botframework.com/v3/directline/conversations 403 (Forbidden)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
- Lĩnh vực
- api
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.
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.
- 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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/BotFramework-DirectLineJS
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
microsoft/BotFramework-DirectLineJS#432 · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
microsoft/BotFramework-DirectLineJS#424 · 3 bình luận ·
-
bug
microsoft/BotFramework-DirectLineJS#421 · 3 bình luận · 1 người được giao ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
microsoft/BotFramework-DirectLineJS#418 · 7 bình luận · 7 reaction ·
Tất cả issue của microsoft/BotFramework-DirectLineJS
Issue tương tự
-
Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OpenNSW/nsw-srilanka#497 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
digidem/comapeo-cloud-app#403 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100