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 ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • Office 365 basic Auth deprecation - Solution

                        If you are using Office 365, please note that the issue could be due to Microsoft depreciating basic authentication. You have to configure mordern authentication (Oauth) to fix it. Please refer the below article for reference Office 365 basic Auth ...
                      • solution for postgres 11 upgrade issues

                        When Supportcenter Plus is upgraded to 14300 or later, postgres is also upgraded to 11.17. If you are using bundled postgres, data migration through pgdump and restore mechanism also happens. To ensure efficiency in Postgres 11.17, make sure your ...
                      • Error - Sanity Failed - Upgrade from 8121 to 11

                        While upgrading from 8121 to 11, after executing Updatemanager.bat and if the update fails, You need to check the Updatemanager logs in the path < Support Center Plus Application path -> Server-> Default-> Logs > .  And if you find the below ...
                      • To change Solutions tab title to knowledge base

                        C:\SupportCenter\server\default\lib\classes\resources\ApplicationResources_en_US.properties  Copy above file and put it under C:\ManageEngine\SupportCenter\custom\i18n. Change the key ' sdp.header.solutions=solutions'  to ...
                      • Inline images broken after SCP Upgrade

                        We suspect that this issue may arise if the migration schedule has not been run post-upgrade. To troubleshoot this issue further, we kindly request the output of the following query. Please connect to the database of the working build and execute the ...