salesforce-marketingcloud / FuelSDK-Java

Salesforce Marketing Cloud Java SDK
BSD 3-Clause "New" or "Revised" License
72 stars 123 forks source link

[ISSUE] - Initiate ET client throwing Runtime modeler execption #137

Open ravivenkateshs1994 opened 2 years ago

ravivenkateshs1994 commented 2 years ago

Describe the bug Getting Runtime modeler exception when we create new ETClient

To Reproduce Steps to reproduce the behavior.

Expected behavior ETClient is initiated

Screenshots If applicable, add screenshots to help explain your problem. image

Code snippet

    try {

        LOGGER.debug("Creating Exact Target client");
        ETClient client = new ETClient("src/main/resources/fuelsdk.properties");
        LOGGER.debug("Creating Refresh Token");

        client.refreshToken();
        LOGGER.debug("Access Token Generated");
        token = client.getAccessToken();
       LOGGER.debug("Access Token :: "+token);

    } catch (ETSdkException e) {
        LOGGER.debug("SDK Exception :: "+e.getMessage());
    }

Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (e.g. gif) is not sufficient.

Environment

The bug has the severity

Additional context Add any other context about the problem here.

satishkchoudhary commented 2 years ago

private void buildClients() throws ETSdkException { authConnection = new ETRestConnection(this, authEndpoint, true); requestToken(); restConnection = new ETRestConnection(this, endpoint); fetchSoapEndpoint(); soapConnection = new ETSoapConnection(this, soapEndpoint, accessToken); }

Exception thrown at - soapConnection = new ETSoapConnection(this, soapEndpoint, accessToken);

Can somebody help here.