Exception when Call List of Wrapup API from Apex Salesforce

Hi

Just wondering, if anyone can help.

We have an integration Genesys Cloud Salesforce EmbedFramework. And we are using Apex Class function to call Genesys Cloud API Wrapup list.

BearerToken, we can retrieve by calling this function in the javascript:

window.PureCloud.User.getAuthToken(function (token) { console.log("FRAMEWORK.JS BEARER TOKEN retrieved."); ENV.bearerToken = token; });

Then we call Genesys Cloud API to Get WrapupList, as following:

  **url ='https://api.mypurecloud.com.au/api/v2/routing/wrapupcodes?pageSize=100&pageNumber=1&sortBy=name&sortOrder=ascending'**
        req.setEndpoint(url);
        req.setMethod('GET');
        req.setHeader('Content-Type', 'application/json');  
        req.setHeader('Accept', 'application/json');  
        req.setHeader('authorization','Bearer '+PCToken);
        HttpResponse res= http.send(req); 

And intermittenly, we get exception from this, (note this is from different occurance)
System.CalloutException: Broken pipe (Write failed)
System.CalloutException: Remote Host terminated by handshake
System.CalloutException: Read time out

but mostly error is: Remote Host terminated by handshake,
but strangely, response can be retrieve by user, this error not stopper.
And not happened to every user, only some

Appreciate for any advise.

Fransiska

Hello,

Please open a case with Genesys Customer Care to further investigate your issue.

Best

hi @Ebenezer_Osei ,

thanks, I have done that.

Fransiska

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