Skip to content

Comm Trace data not written #27

Description

@m1h43l

I made a HTTP GET request to a local web service (ILEastic integration test suite , say hello service at /api/hello) and there was no comm trace data written to the file. The file was created but stayed empty.

dcl-proc main;
    dcl-s httpClient pointer; 
    dcl-s errorMessage varchar(256); 

    httpClient = iv_newHttpClient(); 
    iv_setCommTrace(httpClient : '/tmp/ivex10-commtrace.txt');

    iv_execute(httpClient : 'GET' : 'http://localhost:35801/api/hello'); 
    if (iv_getStatus(httpClient) <> IV_HTTP_OK);
        errorMessage = iv_getErrorMessage(httpClient);
        iv_joblog('My request failed. ' + errorMessage);
    else;
        dsply 'Look at comm trace /tmp/ivex10-commtrace.txt';
    endif;
end-proc;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions