René's URL Explorer Experiment


Title: Json Parsing Error during invalidating tokens · Issue #687 · microsoftgraph/msgraph-sdk-java · GitHub

Open Graph Title: Json Parsing Error during invalidating tokens · Issue #687 · microsoftgraph/msgraph-sdk-java

X Title: Json Parsing Error during invalidating tokens · Issue #687 · microsoftgraph/msgraph-sdk-java

Description: Hello Devs, I'm trying to invalidate user's tokens using graph api as below - final HeaderOption headerOption = new HeaderOption("Content-Type", "application/json"); final List

Open Graph Description: Hello Devs, I'm trying to invalidate user's tokens using graph api as below - final HeaderOption headerOption = new HeaderOption("Content-Type", "application/json"); final List

X Description: Hello Devs, I'm trying to invalidate user's tokens using graph api as below - final HeaderOption headerOption = new HeaderOption("Content-Type", "application/json"); fin...

Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/687

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Json Parsing Error during invalidating tokens","articleBody":"Hello Devs,\r\n\r\nI'm trying to invalidate user's tokens using graph api as below - \r\n\r\n```\r\nfinal HeaderOption headerOption = new HeaderOption(\"Content-Type\", \"application/json\");\r\nfinal List\u003cOption> requestOptions = new LinkedList\u003c>();\r\nrequestOptions.add(headerOption);\r\ngraphClient.users(\"user-id\")\r\n        .revokeSignInSessions()\r\n        .buildRequest(requestOptions)\r\n        .post();\r\n```\r\n\r\n\r\nSDK - `implementation 'com.microsoft.graph:microsoft-graph:2.5.0'`\r\n\r\n> I've set .default scope for ClientCredentialProvider.\r\n\r\nI'm getting below error - \r\n\r\n```\r\nCoreHttpProvider[access$000] - 72Error during http request\r\nThrowable detail: com.microsoft.graph.core.ClientException: Error during http request\r\n\r\ncom.microsoft.graph.core.ClientException: Error during http request\r\n\tat com.microsoft.graph.http.CoreHttpProvider.sendRequestInternal(CoreHttpProvider.java:471)\r\n\tat com.microsoft.graph.http.CoreHttpProvider.access$000(CoreHttpProvider.java:72)\r\n\tat com.microsoft.graph.http.CoreHttpProvider$1.run(CoreHttpProvider.java:171)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\r\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\r\n\tat java.base/java.lang.Thread.run(Thread.java:836)\r\nCaused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a boolean but was BEGIN_OBJECT at line 1 column 2 path $\r\n\tat com.google.gson.Gson.fromJson(Gson.java:944)\r\n\tat com.google.gson.Gson.fromJson(Gson.java:897)\r\n\tat com.google.gson.Gson.fromJson(Gson.java:846)\r\n\tat com.google.gson.Gson.fromJson(Gson.java:817)\r\n\tat com.microsoft.graph.serializer.DefaultSerializer.deserializeObject(DefaultSerializer.java:82)\r\n\tat com.microsoft.graph.http.CoreHttpProvider.handleJsonResponse(CoreHttpProvider.java:532)\r\n\tat com.microsoft.graph.http.CoreHttpProvider.sendRequestInternal(CoreHttpProvider.java:448)\r\n\t... 5 more\r\nCaused by: java.lang.IllegalStateException: Expected a boolean but was BEGIN_OBJECT at line 1 column 2 path $\r\n\tat com.google.gson.stream.JsonReader.nextBoolean(JsonReader.java:854)\r\n\tat com.google.gson.internal.bind.TypeAdapters$3.read(TypeAdapters.java:144)\r\n\tat com.google.gson.internal.bind.TypeAdapters$3.read(TypeAdapters.java:133)\r\n\tat com.google.gson.Gson.fromJson(Gson.java:932)\r\n\t... 11 more\r\n\r\n```\r\n\r\nI've provided the **User.ReadWrite.All, Directory.ReadWrite.All** permission but **Directory.AccessAsUser.All** permission is not listed in the portal.\r\n\r\n[https://docs.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0&tabs=java](url)\r\n\r\n-I'm stuck in it with 3 days so prompt help is appreciated.\r\n\r\n---\r\n#### Document Details\r\n\r\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\r\n\r\n* ID: 4662c3f7-8566-09b3-962c-2cfcccfcfc2f\r\n* Version Independent ID: 1cdc7db2-7c2c-9b23-16f7-05e76f588f6c\r\n* Content: [user: revokeSignInSessions - Microsoft Graph v1.0](https://docs.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0&tabs=java)\r\n* Content Source: [api-reference/v1.0/api/user-revokesigninsessions.md](https://github.com/microsoftgraph/microsoft-graph-docs/blob/master/api-reference/v1.0/api/user-revokesigninsessions.md)\r\n* Product: **users**\r\n* Technology: **microsoft-graph**\r\n* GitHub Login: @krbain\r\n* Microsoft Alias: **MSGraphDocsVteam** \r\n[AB#8419](https://microsoftgraph.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_workitems/edit/8419)","author":{"url":"https://github.com/droidamar007","@type":"Person","name":"droidamar007"},"datePublished":"2021-01-26T16:00:44Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/687"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5ab43d1c-79de-63ca-9933-08fa2030bba9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8FF6:17B2AF:16A7F2C:1D7A04D:6B050F30
html-safe-nonce245543fbd782336af7eb0e76642f988fde53cc72df15d5c105341e762faac20c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkY2OjE3QjJBRjoxNkE3RjJDOjFEN0EwNEQ6NkIwNTBGMzAiLCJ2aXNpdG9yX2lkIjoiMjQxMTkyODUwOTk0Njg1OTMxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb4871bd8128b844d468e1eada521252aed959c4e50427bb5df2e461983ceb1ba
hovercard-subject-tagissue:821264455
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java/687/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c7d830280e8325667ef976f804c9502833fe1639ec76364cd8aa733fb67692f4/microsoftgraph/msgraph-sdk-java/issues/687
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c7d830280e8325667ef976f804c9502833fe1639ec76364cd8aa733fb67692f4/microsoftgraph/msgraph-sdk-java/issues/687
og:image:altHello Devs, I'm trying to invalidate user's tokens using graph api as below - final HeaderOption headerOption = new HeaderOption("Content-Type", "application/json"); final List
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedroidamar007
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
turbo-cache-controlno-preview
go-importgithub.com/microsoftgraph/msgraph-sdk-java git https://github.com/microsoftgraph/msgraph-sdk-java.git
octolytics-dimension-user_id17304259
octolytics-dimension-user_loginmicrosoftgraph
octolytics-dimension-repository_id103300409
octolytics-dimension-repository_nwomicrosoftgraph/msgraph-sdk-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id103300409
octolytics-dimension-repository_network_root_nwomicrosoftgraph/msgraph-sdk-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoftgraph/msgraph-sdk-java/issues/687#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmsgraph-sdk-java%2Fissues%2F687
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmsgraph-sdk-java%2Fissues%2F687
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoftgraph%2Fmsgraph-sdk-java
Reloadhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/687
Reloadhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/687
Reloadhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/687
microsoftgraphhttps://github.com/microsoftgraph
msgraph-sdk-javahttps://github.com/microsoftgraph/msgraph-sdk-java
Codehttps://github.com/microsoftgraph/msgraph-sdk-java
Issues107 (107)https://github.com/microsoftgraph/msgraph-sdk-java/issues
Pull requests23 (23)https://github.com/microsoftgraph/msgraph-sdk-java/pulls
Actionshttps://github.com/microsoftgraph/msgraph-sdk-java/actions
Projectshttps://github.com/microsoftgraph/msgraph-sdk-java/projects
Security and qualityhttps://github.com/microsoftgraph/msgraph-sdk-java/security
Insightshttps://github.com/microsoftgraph/msgraph-sdk-java/insights
https://github.com/microsoftgraph/msgraph-sdk-java
New issuehttps://github.com/login?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/687
New issuehttps://github.com/login?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/687
#693https://github.com/microsoftgraph/msgraph-sdk-java/pull/693
Json Parsing Error during invalidating tokenshttps://github.com/microsoftgraph/msgraph-sdk-java/issues/687#top
#693https://github.com/microsoftgraph/msgraph-sdk-java/pull/693
https://github.com/baywet
bughttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22bug%22
2.10.0https://github.com/microsoftgraph/msgraph-sdk-java/milestone/16
https://github.com/droidamar007
SoftLion (droidamar007)https://github.com/droidamar007
on Jan 26, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#issue-821264455
https://docs.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0&tabs=javahttps://github.com/microsoftgraph/msgraph-sdk-java/issues/url
user: revokeSignInSessions - Microsoft Graph v1.0https://docs.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0&tabs=java
api-reference/v1.0/api/user-revokesigninsessions.mdhttps://github.com/microsoftgraph/microsoft-graph-docs/blob/master/api-reference/v1.0/api/user-revokesigninsessions.md
Kristina Smith (@krbain)https://github.com/krbain
AB#8419https://microsoftgraph.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_workitems/edit/8419
wdkbothttps://github.com/wdkbot
Kristina Smith (krbain)https://github.com/krbain
on Jan 26, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#event-4251428202
https://github.com/nk6096
Nitish Kumar (nk6096)https://github.com/nk6096
on Jan 28, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#issuecomment-768768478
https://github.com/droidamar007
SoftLion (droidamar007)https://github.com/droidamar007
on Mar 1, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#issuecomment-787809714
Kristina Smith (@krbain)https://github.com/krbain
ToTriagehttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22ToTriage%22
on Mar 3, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#event-4402965342
Vincent Biret (baywet)https://github.com/baywet
https://github.com/microsoftgraph/msgraph-sdk-java/issues/undefined
on Mar 3, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#event-4402965526
ToTriagehttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22ToTriage%22
on Mar 3, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#event-4402966311
Vincent Biret (baywet)https://github.com/baywet
Vincent Biret (baywet)https://github.com/baywet
Kristina Smith (krbain)https://github.com/krbain
on Mar 3, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#event-4403006909
Vincent Biret (baywet)https://github.com/baywet
questionhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22question%22
on Mar 3, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#event-4403007509
https://github.com/baywet
Vincent Biret (baywet)https://github.com/baywet
on Mar 3, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#issuecomment-789850655
Vincent Biret (baywet)https://github.com/baywet
Needs: Author Feedbackhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Author%20Feedback%22
on Mar 3, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#event-4403024813
https://github.com/droidamar007
SoftLion (droidamar007)https://github.com/droidamar007
on Mar 9, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#issuecomment-793315286
Vincent Biret (@baywet)https://github.com/baywet
Directory.AccessAsUser.Allhttps://stackoverflow.com/questions/45549105/set-the-scope-parameter-for-microsoft-graph
Needs: Attention 👋https://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Attention%20%3Awave%3A%22
on Mar 9, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#event-4424934894
Needs: Author Feedbackhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Author%20Feedback%22
on Mar 9, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#event-4424934979
Vincent Biret (baywet)https://github.com/baywet
bughttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22bug%22
Needs: Attention 👋https://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22Needs%3A%20Attention%20%3Awave%3A%22
questionhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22question%22
on Mar 9, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#event-4429095300
Vincent Biret (baywet)https://github.com/baywet
2.10.0https://github.com/microsoftgraph/msgraph-sdk-java/milestone/16
on Mar 9, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#event-4429095654
https://github.com/baywet
Vincent Biret (baywet)https://github.com/baywet
on Mar 9, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#issuecomment-794035164
SoftLion (@droidamar007)https://github.com/droidamar007
was added for post requests with empty bodieshttps://github.com/microsoftgraph/msgraph-sdk-java/commit/7621b940704178f57a04db87cc1eb795a80ddf58
content type header should not be provided when the body is emptyhttps://stackoverflow.com/questions/29784398/should-content-type-header-be-present-when-the-message-body-is-empty
Vincent Biret (baywet)https://github.com/baywet
completedhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#693https://github.com/microsoftgraph/msgraph-sdk-java/pull/693
on Mar 9, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#event-4430958398
https://github.com/baywet
Vincent Biret (baywet)https://github.com/baywet
on Mar 9, 2021https://github.com/microsoftgraph/msgraph-sdk-java/issues/687#issuecomment-794378267
SoftLion (@droidamar007)https://github.com/droidamar007
#693https://github.com/microsoftgraph/msgraph-sdk-java/pull/693
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/687
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/687
Vincent Biret (baywet)https://github.com/baywet
bughttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22bug%22
2.10.0https://github.com/microsoftgraph/msgraph-sdk-java/milestone/16
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.