Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comm Trace data not written #27

Open
m1h43l opened this issue Jul 27, 2023 · 0 comments
Open

Comm Trace data not written #27

m1h43l opened this issue Jul 27, 2023 · 0 comments

Comments

@m1h43l
Copy link
Collaborator

m1h43l commented Jul 27, 2023

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;
@m1h43l m1h43l changed the title Comm Trace data now written Comm Trace data not written Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant