Creating user messages subscription results in "...backend 'Unknown'" error
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- api
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
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.
- Dominant language
- TypeScript
- Stars
- 833
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoftgraph/msgraph-sdk-javascript
-
status:waiting-for-triage
Difficulty 1/5 Under an hour Newbie friendliness 62/100
-
Is anyone here? Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
microsoftgraph/msgraph-sdk-javascript#2005 · 1 reaction ·
-
Is it really correct that the Javascript version of the graph SDK doesn't offer typed requests? Openstatus:waiting-for-triage
Difficulty 5/5 Over a week Newbie friendliness 42/100
-
status:waiting-for-triage type:bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
microsoftgraph/msgraph-sdk-javascript#1999 · 2 comments · 1 reaction ·
-
status:waiting-for-triage type:bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
All issues in microsoftgraph/msgraph-sdk-javascript
Similar issues
-
Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenNSW/nsw-srilanka#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
Difficulty 1/5 Under an hour Newbie friendliness 88/100
digidem/comapeo-cloud-app#403 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100