Client Credentials OAuth Grant Type with Dynamics 365 CRM Erroring Out

Hi Team ,

When Using Client Credentials Grant type with Dynamics 365 CRM Connector it’s Erroring Out with Below error :

ERROR_INVOKING_CLOUD_SERVICE: Error occurred while invoking the service with an interaction handler. Details : ‘Unable to retrieve metadata, unexpected content-type ‘null’, status = 401 , message = Unauthorized.’. Cause: Unable to retrieve metadata, unexpected content-type ‘null’, status = 401 , message = Unauthorized

P.S. : The Account was added properly No error while adding the account using client_credentials grant type , the error is thrown while testing the Dynamics 365 CRM Connector call

check if you populated the header field Content-Type:
“unexpected content-type ‘null’”
This is normally mandatory