Legacy Dev Forum Posts

 View Only

Sign Up

Error via proxy(postAnalyticsFlowsAggregatesQuery⇒error)

  • 1.  Error via proxy(postAnalyticsFlowsAggregatesQuery⇒error)

    Posted 06-05-2025 18:23

    yosuke | 2022-10-06 09:28:53 UTC | #1

    I accessed it from a Windows server via proxy using the "postAnalyticsFlowsAggregatesQuery" method and got a error. What is the cause and solution?


    source


    ApiClient apiClient1 = ApiClient.Builder.standard().withBasePath(region).withAuthenticatedProxy(proxy,wuserId, wpass).build(); ApiResponse<AuthResponse> authResponse = apiClient1.authorizeClientCredentials(clientId, clientSecret); String token = authResponse.getBody().getAccesstoken(); ApiClient apiClient2 =Builder.standard() .withAccessToken(token) .withBasePath("https://api.mypurecloud.jp") .withAuthenticatedProxy(proxy,wuserId, w_pass) .build(); Configuration.setDefaultApiClient(apiClient2); FlowsApi apiInstance = new FlowsApi(); FlowAggregationQuery flowBody= new FlowAggregationQuery(); flowBody.setInterval("2022-05-06T00:00:00.000Z/2022-05-06T12:00:00.000Z"); FlowAggregateQueryResponse result = apiInstance.postAnalyticsFlowsAggregatesQuery(flowBody); ←error


    log


    com.mypurecloud.sdk.v2.ApiException: error at com.mypurecloud.sdk.v2.ApiClient.interpretConnectorResponse(ApiClient.java:704) at com.mypurecloud.sdk.v2.ApiClient.getAPIResponse(ApiClient.java:756) at com.mypurecloud.sdk.v2.ApiClient.invoke(ApiClient.java:867) at com.mypurecloud.sdk.v2.api.FlowsApi.postAnalyticsFlowsAggregatesQuery(FlowsApi.java:80) at com.mypurecloud.sdk.v2.api.FlowsApi.postAnalyticsFlowsAggregatesQuery(FlowsApi.java:49) at csc.batch.main.reportdata.report.GetTokenAndGetFlowInfo.main(GetTokenAndGetFlowInfo.java:67)


    anon14299330 | 2022-10-06 10:18:48 UTC | #2

    Hi,

    Please review the documentation for this endpoint and the required fields that must be set before making the request POST /api/v2/analytics/flows/aggregates/query.

    Thanks,

    Mike


    system | 2022-11-06 10:19:07 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 16608