We're trying to get Genesys web messaging integrated into our own UI, using the Genesys Java SDK GitHub - MyPureCloud/web-messaging-sdk-java. When attempting to execute even the sample code that has been provided in the Genesys SDK doc, the code just completes with no respond being sent back from Genesys. The SDK seems to fail silently because there are methods in the WebMessagingClient that are catching exceptions but not throwing them back;
public void configureSession(String deploymentId, String token, String origin, String tracingId, Optional<Boolean> startNew) {
try {
this.token = token;
this.deploymentId = deploymentId;
if (apiClient == null) {
initializeApiClient(origin);
}
// Create configuration request
ConfigureSessionRequest configureSessionRequest = new ConfigureSessionRequest();
configureSessionRequest.setAction(RequestTypeConfigureSession.CONFIGURESESSION);
configureSessionRequest.setDeploymentId(deploymentId);
configureSessionRequest.setToken(token);
configureSessionRequest.setTracingId(tracingId);
startNew.ifPresent(boolValue -> configureSessionRequest.setStartNew(boolValue));
String payload = objectMapper.writeValueAsString(configureSessionRequest);
webSocket.sendText(payload, true);
} catch (JsonProcessingException e) {
// no-op
}
}
It's difficult to get a full view of what the issue may be without the exception being thrown. Has anyone had any success with this SDK and what have you done to resolve the silent failure?
Even if it's because the parameters passed in such as origin is wrong, it would be nice to get an error to indicate that.
#WebMessaging------------------------------
Mei Tan
Senior Solutions Architect
------------------------------