fransiska.hendra | 2024-02-12 14:06:06 UTC | #1
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
Ebenezer_Osei | 2024-02-15 18:01:33 UTC | #2
Hello,
Please open a case with Genesys Customer Care to further investigate your issue.
Best
fransiska.hendra | 2024-02-15 22:03:55 UTC | #3
hi @Ebenezer_Osei ,
thanks, I have done that.
Fransiska
system | 2024-03-16 22:04:14 UTC | #4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 24596