[midPoint] Configuring Slack connector (Communication Issue)

BHATNAGAR Deshak deshak.bhatnagar at thalesgroup.com
Thu Apr 27 07:42:52 CEST 2023


Hello,

I am getting the below error when trying to connect with Slack using the Slack Connector version 1.4.4:
Operation
Connector capabilities
Message
Communication error

Error
IO error: org.identityconnectors.framework.common.exceptions.ConnectorIOException(An error has occurred while processing the http response. Occurrence in the process of querying the provider Schemas resource object)->java.net.SocketException(Connection reset)


The below is the configuration for Slack Connector:

<resource xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oid="a1666b36-b52e-4b22-b231-055b61644791" version="30">
    <name>Slack</name>
    <metadata>
        <modifyTimestamp>2023-04-26T15:15:32.148+05:30</modifyTimestamp>
        <modifierRef oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="c:UserType">
            <!-- administrator -->
        </modifierRef>
        <modifyChannel>http://midpoint.evolveum.com/xml/ns/public/common/channels-3#user</modifyChannel>
    </metadata>
    <operationExecution id="1">
        <recordType>simple</recordType>
        <timestamp>2023-04-26T11:51:56.232+05:30</timestamp>
        <operation>
            <objectDelta>
                <t:changeType>modify</t:changeType>
                <t:objectType>c:ResourceType</t:objectType>
            </objectDelta>
            <executionResult>
                <operation>com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta</operation>
                <status>success</status>
                <importance>normal</importance>
                <token>1000000000000015774</token>
            </executionResult>
            <objectName>Slack</objectName>
        </operation>
        <status>success</status>
        <initiatorRef oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="c:UserType">
            <!-- administrator -->
        </initiatorRef>
        <channel>http://midpoint.evolveum.com/xml/ns/public/common/channels-3#user</channel>
    </operationExecution>
    <operationExecution id="61">
        <recordType>simple</recordType>
        <timestamp>2023-04-26T14:53:48.499+05:30</timestamp>
        <operation>
            <objectDelta>
                <t:changeType>modify</t:changeType>
                <t:objectType>c:ResourceType</t:objectType>
            </objectDelta>
            <executionResult>
                <operation>com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta</operation>
                <status>success</status>
                <importance>normal</importance>
                <token>1000000000000019691</token>
            </executionResult>
            <objectName>Slack</objectName>
        </operation>
        <status>success</status>
        <initiatorRef oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="c:UserType">
            <!-- administrator -->
        </initiatorRef>
        <channel>http://midpoint.evolveum.com/xml/ns/public/common/channels-3#user</channel>
    </operationExecution>
    <operationExecution id="62">
        <recordType>simple</recordType>
        <timestamp>2023-04-26T14:56:11.642+05:30</timestamp>
        <operation>
            <objectDelta>
                <t:changeType>modify</t:changeType>
                <t:objectType>c:ResourceType</t:objectType>
            </objectDelta>
            <executionResult>
                <operation>com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta</operation>
                <status>success</status>
                <importance>normal</importance>
                <token>1000000000000020189</token>
            </executionResult>
            <objectName>Slack</objectName>
        </operation>
        <status>success</status>
        <initiatorRef oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="c:UserType">
            <!-- administrator -->
        </initiatorRef>
        <channel>http://midpoint.evolveum.com/xml/ns/public/common/channels-3#user</channel>
    </operationExecution>
    <operationExecution id="63">
        <recordType>simple</recordType>
        <timestamp>2023-04-26T14:56:21.387+05:30</timestamp>
        <operation>
            <objectDelta>
                <t:changeType>modify</t:changeType>
                <t:objectType>c:ResourceType</t:objectType>
            </objectDelta>
            <executionResult>
                <operation>com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta</operation>
                <status>success</status>
                <importance>normal</importance>
                <token>1000000000000020268</token>
            </executionResult>
            <objectName>Slack</objectName>
        </operation>
        <status>success</status>
        <initiatorRef oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="c:UserType">
            <!-- administrator -->
        </initiatorRef>
        <channel>http://midpoint.evolveum.com/xml/ns/public/common/channels-3#user</channel>
    </operationExecution>
    <operationExecution id="68">
        <recordType>simple</recordType>
        <timestamp>2023-04-26T15:15:32.265+05:30</timestamp>
        <operation>
            <objectDelta>
                <t:changeType>modify</t:changeType>
                <t:objectType>c:ResourceType</t:objectType>
            </objectDelta>
            <executionResult>
                <operation>com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeDelta</operation>
                <status>success</status>
                <importance>normal</importance>
                <token>1000000000000020786</token>
            </executionResult>
            <objectName>Slack</objectName>
        </operation>
        <status>success</status>
        <initiatorRef oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="c:UserType">
            <!-- administrator -->
        </initiatorRef>
        <channel>http://midpoint.evolveum.com/xml/ns/public/common/channels-3#user</channel>
    </operationExecution>
    <iteration>0</iteration>
    <iterationToken/>
    <operationalState>
        <lastAvailabilityStatus>down</lastAvailabilityStatus>
        <message>Status set to DOWN because testing connection using ConnectorSpec(resource:a1666b36-b52e-4b22-b231-055b61644791(Slack), name=null, oid=f29c72cd-b074-4476-9018-316c54b7ad94). Connector test successful. failed while testing capabilities: IO error: org.identityconnectors.framework.common.exceptions.ConnectorIOException(An error has occurred while processing the http response. Occurrence in the process of querying the provider Schemas resource object)->java.net.SocketException(Connection reset)</message>
        <timestamp>2023-04-26T15:23:44.801+05:30</timestamp>
        <nodeId>DefaultNode</nodeId>
    </operationalState>
    <operationalStateHistory id="73">
        <lastAvailabilityStatus>up</lastAvailabilityStatus>
        <message>Status changed from DOWN to UP because testing connection using ConnectorSpec(resource:a1666b36-b52e-4b22-b231-055b61644791(Slack), name=null, oid=f29c72cd-b074-4476-9018-316c54b7ad94). Connector test successful.</message>
        <timestamp>2023-04-26T15:18:30.740+05:30</timestamp>
        <nodeId>DefaultNode</nodeId>
    </operationalStateHistory>
    <operationalStateHistory id="74">
        <lastAvailabilityStatus>down</lastAvailabilityStatus>
        <message>Status set to DOWN because testing connection using ConnectorSpec(resource:a1666b36-b52e-4b22-b231-055b61644791(Slack), name=null, oid=f29c72cd-b074-4476-9018-316c54b7ad94). Connector test successful. failed while testing capabilities: IO error: org.identityconnectors.framework.common.exceptions.ConnectorIOException(An error has occurred while processing the http response. Occurrence in the process of querying the provider Schemas resource object)->java.net.SocketException(Connection reset)</message>
        <timestamp>2023-04-26T15:18:36.016+05:30</timestamp>
        <nodeId>DefaultNode</nodeId>
    </operationalStateHistory>
    <operationalStateHistory id="75">
        <lastAvailabilityStatus>up</lastAvailabilityStatus>
        <message>Status changed from DOWN to UP because testing connection using ConnectorSpec(resource:a1666b36-b52e-4b22-b231-055b61644791(Slack), name=null, oid=f29c72cd-b074-4476-9018-316c54b7ad94). Connector test successful.</message>
        <timestamp>2023-04-26T15:19:01.312+05:30</timestamp>
        <nodeId>DefaultNode</nodeId>
    </operationalStateHistory>
    <operationalStateHistory id="76">
        <lastAvailabilityStatus>down</lastAvailabilityStatus>
        <message>Status set to DOWN because testing connection using ConnectorSpec(resource:a1666b36-b52e-4b22-b231-055b61644791(Slack), name=null, oid=f29c72cd-b074-4476-9018-316c54b7ad94). Connector test successful. failed while testing capabilities: IO error: org.identityconnectors.framework.common.exceptions.ConnectorIOException(An error has occurred while processing the http response. Occurrence in the process of querying the provider Schemas resource object)->java.net.SocketException(Connection reset)</message>
        <timestamp>2023-04-26T15:19:01.572+05:30</timestamp>
        <nodeId>DefaultNode</nodeId>
    </operationalStateHistory>
    <operationalStateHistory id="77">
        <lastAvailabilityStatus>up</lastAvailabilityStatus>
        <message>Status changed from DOWN to UP because testing connection using ConnectorSpec(resource:a1666b36-b52e-4b22-b231-055b61644791(Slack), name=null, oid=f29c72cd-b074-4476-9018-316c54b7ad94). Connector test successful.</message>
        <timestamp>2023-04-26T15:23:39.533+05:30</timestamp>
        <nodeId>DefaultNode</nodeId>
    </operationalStateHistory>
    <operationalStateHistory id="78">
        <lastAvailabilityStatus>down</lastAvailabilityStatus>
        <message>Status set to DOWN because testing connection using ConnectorSpec(resource:a1666b36-b52e-4b22-b231-055b61644791(Slack), name=null, oid=f29c72cd-b074-4476-9018-316c54b7ad94). Connector test successful. failed while testing capabilities: IO error: org.identityconnectors.framework.common.exceptions.ConnectorIOException(An error has occurred while processing the http response. Occurrence in the process of querying the provider Schemas resource object)->java.net.SocketException(Connection reset)</message>
        <timestamp>2023-04-26T15:23:44.801+05:30</timestamp>
        <nodeId>DefaultNode</nodeId>
    </operationalStateHistory>
    <connectorRef oid="f29c72cd-b074-4476-9018-316c54b7ad94" relation="org:default" type="c:ConnectorType">
        <!-- ConnId com.evolveum.polygon.scim.ScimConnector v1.4.4 -->
    </connectorRef>
    <connectorConfiguration xmlns:icfc="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3">
        <icfc:configurationProperties xmlns:gen683="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/bundle/com.evolveum.polygon.scim.connector-scim/com.evolveum.polygon.scim.ScimConnector">
            <gen683:authentication>token</gen683:authentication>
            <gen683:token>
                <t:encryptedData>
                    <t:encryptionMethod>
                        <t:algorithm>http://www.w3.org/2001/04/xmlenc#aes256-cbc</t:algorithm>
                    </t:encryptionMethod>
                    <t:keyInfo>
                        <t:keyName>tmLdTSBSQhVb5k9iLfMF7HJJEUU=</t:keyName>
                    </t:keyInfo>
                    <t:cipherData>
                        <t:cipherValue>lwijAMa/mYZk3HhwzO36QvlqX/82PKiUK9GXS3iu4RsN34FAB4rjkijehXd2k7QEt9jNwLUooAuQqPKTXzR10DtkoKSHrdPyCuhbd4eZdmIUESAtmCQGhk0oFof0qd7O</t:cipherValue>
                    </t:cipherData>
                </t:encryptedData>
           </gen683:token>
            <gen683:endpoint>/scim</gen683:endpoint>
            <gen683:version>/v1</gen683:version>
            <gen683:baseUrl>https://api.slack.com</gen683:baseUrl>
        </icfc:configurationProperties>
    </connectorConfiguration>

   Thanks & Regards
Deshak Bhatnagar
Software Engineer-I


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20230427/f9f864bc/attachment-0001.htm>


More information about the midPoint mailing list