PureCloudPlatform.Client.V2.Client.ApiException: 'Error calling GetUsersMe: Cannot send a content-body with this verb-type.'

Hello,
I am trying to call the GetUsersMe via the C# SDK. But since I upgraded to the latest version of the SDK (PureCloudPlatform.Client.V2; Version: 200.0.0) I am getting erros when calling the API.

Can anyone help with that ?

Error:
PureCloudPlatform.Client.V2.Client.ApiException: 'Error calling GetUsersMe: Cannot send a content-body with this verb-type.'

TRACE: 03.04.2024 09:04:33

=== REQUEST ===

URL: https://login.mypurecloud.de/token

Method: Post

Headers:

Accept: application/json

Authorization: [REDACTED]

=== RESPONSE ===

Status: 200

Headers:

Connection: keep-alive

Critical-Origin-Trial: Tpcd

Inin-Correlation-Id: 74d9a11f-a537-4ddb-778d-5c1769cfc2ac

Origin-Trial: [REDACTED]

Strict-Transport-Security: max-age=31536000

Vary: Accept-Encoding

Date: Wed, 03 Apr 2024 09:04:33 GMT

DEBUG: 03.04.2024 09:04:33

=== REQUEST ===

URL: https://login.mypurecloud.de/token

Method: Post

Headers:

Accept: application/json

Authorization: [REDACTED]

=== RESPONSE ===

Status: 200

DEBUG: 03.04.2024 09:04:36

=== REQUEST ===

URL: https://api.mypurecloud.de/api/v2/users/me

Method: Get

Headers:

content-type: application/json

Accept: application/json

Authorization: [REDACTED]

=== RESPONSE ===

Status: 0

TRACE: 03.04.2024 09:04:36

=== REQUEST ===

URL: https://api.mypurecloud.de/api/v2/users/me

Method: Get

Headers:

content-type: application/json

Accept: application/json

Authorization: [REDACTED]

=== RESPONSE ===

Status: 0

ERROR: 03.04.2024 09:04:36

=== REQUEST ===

URL: https://api.mypurecloud.de/api/v2/users/me

Method: Get

Headers:

content-type: application/json

Accept: application/json

Authorization: [REDACTED]

=== RESPONSE ===

My code:

                PureCloudRegionHosts region = PureCloudRegionHosts.eu_central_1;
                Configuration.Default.ApiClient.setBasePath(region);

                Dictionary<string, string> header = new Dictionary<string, string>();
                header.Add("content-type", "application/json");

                AuthTokenInfo authTokenInfo=  Configuration.Default.ApiClient.PostToken(Properties.Resources.clientID, Properties.Resources.client_secret);


                Configuration.Default.AccessToken = authTokenInfo.AccessToken;
                Configuration.Default.DefaultHeader = header;
                dc.uapi = new UsersApi();
                dc.me = dc.uapi.GetUsersMe();

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.