Microsoft Graph troubleshooting and Solution.

Microsoft Graph troubleshooting and Solution.

Error traces:


[14:40:47:056]|[02-13-2024]|[com.manageengine.mdh.MDHFilter]|[INFO]|[1561]: PORTALID : 1| [14:40:47:073]|[02-13-2024]|[com.manageengine.servicedesk.authentication.oauth.util.OauthUtil]|[INFO]|[1561]: Authorization code obtained successfully| [14:40:47:073]|[02-13-2024]|[com.adventnet.servicedesk.common.MailUtilities]|[INFO]|[1561]: Proxy not enabled for graph. isIncoming: false| [14:40:47:228]|[02-13-2024]|[SYSERR]|[INFO]|[1561]: com.nimbusds.oauth2.sdk.ParseException: The HTTP Content-Type header must be application/json, received text/html| [14:40:47:229]|[02-13-2024]|[SYSERR]|[INFO]|[1561]: a

Solution:



Error trace 2: 

[18:51:37:565]|[02-27-2024]|[com.manageengine.servicedesk.mailutils.TestMailServlet]|[INFO]|[577]: inside TestMailServlet doPost method. command ::sendSampleMail|^M

[18:51:37:566]|[02-27-2024]|[com.manageengine.servicedesk.mailutils.graph.GraphAPILogger]|[INFO]|[577]: --> POST https://graph.microsoft.com/me/microsoft.graph.sendMail|^M


Solution:

Seems, the graph endpoint is incorrect. The endpoint should be "https://graph.microsoft.com/v1.0" whereas "v1.0" is missing in the endpoint. Try saving with correct endpoint and check this case.

                  New to ADSelfService Plus?