Creating user messages subscription results in "...backend 'Unknown'" error

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

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

Start with the Microsoft Graph subscriptions API documentation linked in the issue and inspect the reported response through the SDK's GraphError.js path. No repository source file or test is identified, and reproduction depends on an unknown subset of users. Done would require establishing whether the SDK exposes or mishandles this service error, with a reproducible case or a clearly documented service-side finding.

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

Mô tả

status:waiting-for-triage type:bug
Describe the bug

I am trying to create a subscription for one of my customers' users, but it fails with an unexpected error. This seems rare and is isolated to very few users.

Expected behavior

Using the subscriptions API in the SDK results in success.

https://learn.microsoft.com/en-us/graph/api/subscription-post-subscriptions?view=graph-rest-1.0&tabs=http

How to reproduce

Attempt to create a subscription for an impacted user (I do not know what constitutes an impacted user).

SDK Version

^3.0.7

Latest version known to work for scenario above?

No response

Known Workarounds

None

Debug output
Click to expand log

Error: Operation: Create; Exception: [Status Code: ServiceUnavailable; Reason: Target resource '<REDACTED_RESOURCE_ID>' hosted on database '<REDACTED_UUID>' is currently on backend 'Unknown']
    at new GraphError (/app/node_modules/@microsoft/microsoft-graph-client/lib/src/GraphError.js:34:28)
    at GraphErrorHandler.constructErrorFromResponse ...


Configuration

No response

Other information

Symptoms of the problem
Subscription fails to create for some users. This has repeatedly happened for the same user in the same organization (see error message). I have confirmed with our customer that there is nothing unique about that users' Microsoft Outlook account, and other users in their organization are able to use the Outlook subscription feature of our app just fine.

When did the problem begin?
Tue, Feb 4, 2025, 3:02 PM (UTC-08:00) Pacific Time (US & Canada)

Please provide additional details
We have many users using our Outlook subscription feature. The API has been quite buggy. The error here is the most severe and isn't not possible to overcome as far as we're aware. Additionally, the subscription endpoint sometimes hangs indefinitely and results in a 'request cancelled' error. This requires us to manually retry the creation of the subscription.

Ngôn ngữ chính
TypeScript
Star
833
Fork
240
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

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.

Issue khác của microsoftgraph/msgraph-sdk-javascript

Tất cả issue của microsoftgraph/msgraph-sdk-javascript

Issue tương tự

Thêm issue về TypeScript

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.