Skip to content

RESTEASY004655 error code when perform the SwitchboardActionsApi.passControl #46

Description

@gongmingqm10

Hi, while using the Sunshine API to integrate with our Bot solution. We found there are quite a higher chance the API failed on the SwitchboardActionsApi.passControl . Our sample code as below:

    public void passControlConversation(String conversationId, String targetSwitchboardIntegration, @Nullable Map<String, Object> metadata) {
        PassControlBody passControlBody = new PassControlBody();
        passControlBody.setSwitchboardIntegration(targetSwitchboardIntegration);
        passControlBody.setMetadata(metadata);
        try {
            getSwitchboardActionsApi().passControl(passControlBody, zendeskConfig.getSunshineAppId(), conversationId);
        } catch (Exception e) {
            log.error(String.format("Sunshine API passControlConversation (%s) exception: %s", conversationId, e.getMessage()));
            throw new RemoteServiceException(String.format("Sunshine API passControl conversation (%s) to %s exception: %s", conversationId, targetSwitchboardIntegration, e.getMessage()));
        }
    }

Our current Sunshine API library version as below:

implementation 'com.zendesk:sunshine-conversations-client:14.2.0'

I cannot find any error code explanations. I suspect this might be related to the Api client connection-pools setting. But we're in the Sandbox environment. There is indeed quite low traffic. I don't think the root cause is because of the concurrency

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions