Title: me-token-to-replace not being replaced · Issue #1271 · microsoftgraph/msgraph-sdk-python · GitHub
Open Graph Title: me-token-to-replace not being replaced · Issue #1271 · microsoftgraph/msgraph-sdk-python
X Title: me-token-to-replace not being replaced · Issue #1271 · microsoftgraph/msgraph-sdk-python
Description: I am following the same tutorial as in #544 ( https://learn.microsoft.com/en-us/graph/tutorials/python?tabs=aad ) and getting the same error. As that issue is closed, I can't re-open it. The error is that the URL used in the ultimate req...
Open Graph Description: I am following the same tutorial as in #544 ( https://learn.microsoft.com/en-us/graph/tutorials/python?tabs=aad ) and getting the same error. As that issue is closed, I can't re-open it. The error ...
X Description: I am following the same tutorial as in #544 ( https://learn.microsoft.com/en-us/graph/tutorials/python?tabs=aad ) and getting the same error. As that issue is closed, I can't re-open it. The er...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-python/issues/1271
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"me-token-to-replace not being replaced","articleBody":"I am following the same tutorial as in #544 ( [https://learn.microsoft.com/en-us/graph/tutorials/python?tabs=aad](url) ) and getting the same error. As that issue is closed, I can't re-open it. The error is that the URL used in the ultimate request includes the path component me-token-to-replace:\n\n[https://graph.microsoft.com/v1.0//users/me-token-to-replace/mailFolders/inbox/messages?$orderby=receivedDateTime%20DESC\u0026$select=from,isRead,receivedDateTime,subject\u0026$top=25](url)\n\nAnd the error returned by the server is:\n\n\u003e Response content: {\"error\":{\"code\":\"ErrorInvalidUser\",\"message\":\"The requested user 'me-token-to-replace' is invalid.\"}}\n\nI would like to know if there has been any progress on solving this or workarounds? The ticket listed in the comments is still open and it was suggested it would be fixed more than a year ago. I have used both DeviceCodeCredential and InteractiveBrowserCredential with the same error.\n\nOne of the workarounds, using graph_client.users.by_user_id instead of graph_client.me might work except I can't hardcode the user_id in the long term.\n\nIf it makes any difference, I'm running on RHEL9, Python 3.9, msgraph sdk version 1.35.0 and all dependencies the latest versions downloaded as of today. Thanks for any help!","author":{"url":"https://github.com/SyamGadde","@type":"Person","name":"SyamGadde"},"datePublished":"2025-06-25T20:09:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1271/msgraph-sdk-python/issues/1271"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e4bbd836-27d8-1471-3d95-3dc6f40005b5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A070:F2351:E70680:13B9965:69693DCE |
| html-safe-nonce | 4c934d1d59f9685f62f5b67313835bbd6eb180c685aedaef933ac298ca92b1c1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDcwOkYyMzUxOkU3MDY4MDoxM0I5OTY1OjY5NjkzRENFIiwidmlzaXRvcl9pZCI6IjkyMjA4MjU3NTQzNzY5NDUxMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 26abc5e13b64550b417ca31f38211c384aa551d2c6220785a0eee4820a660c4c |
| hovercard-subject-tag | issue:3176827696 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-python/1271/issue_layout |
| twitter:image | https://opengraph.githubassets.com/05a15cba10929344bdd2b13410e2575a6809634772225f8da9ab03b8ae7c359d/microsoftgraph/msgraph-sdk-python/issues/1271 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/05a15cba10929344bdd2b13410e2575a6809634772225f8da9ab03b8ae7c359d/microsoftgraph/msgraph-sdk-python/issues/1271 |
| og:image:alt | I am following the same tutorial as in #544 ( https://learn.microsoft.com/en-us/graph/tutorials/python?tabs=aad ) and getting the same error. As that issue is closed, I can't re-open it. The error ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SyamGadde |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-python git https://github.com/microsoftgraph/msgraph-sdk-python.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 534665999 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 534665999 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width