Question
· Sep 7, 2023

Inconsistent Visual Trace Outputs

Hi everyone,

I have a question related to a strange issue I've been experiencing over the last few days.

Context

I'm attempting to create an automatic resending system that, if no reply is received from the server, raises an error and re-sends the message. This process continues for the a duration defined by the FailureTimeout (e.g., 20 seconds), and a new message is being sent every 5 seconds until the FailureTimeout is reached. If no response was obtained from the server, the system returns an error. 

Issue

I've noticed that at times, even with the same input and settings, the outputs displayed in the Visual Trace differ. For instance, occasionally, some log or log error entries are missing.

Example

Below, I'm providing an example of two distinct outputs obtained with the same configuration and input:

1. Regular Case: 1 trace and 1 error log for each message

2. Strange Case - 2 error logs are missing

Those are the event log time tables:

Log:

Case 1
• First Send: Logged: 2023-09-07 10:24:03.778
• Error 1: Logged: 2023-09-07 10:24:08.937
• Second Send: Logged: 2023-09-07 10:24:08.937
• Error 2: Logged: 2023-09-07 10:24:14.097
• Third Send: Logged: 2023-09-07 10:24:14.097
• Error 3: Logged: 2023-09-07 10:24:19.256
• Fourth Send: Logged: 2023-09-07 10:24:19.256
• Final Warning: Logged: 2023-09-07 10:24:24.418

Case 2 – Without 2 ERROR logs
• First Send: Logged: 2023-09-07 10:22:24.007
• Error 1: Logged: 2023-09-07 10:22:29.333
• Second Send: Logged: 2023-09-07 10:22:29.333
• Error 2: Missing
• Third Send: Logged: 2023-09-07 10:22:34.491
• Error 3: Missing
• Fourth Send: Logged: 2023-09-07 10:22:39.647
• Final Warning: Logged: 2023-09-07 10:22:44.806

Question

Could someone please explain to me why this is happening? I'm unable to determine the cause, and the only explanation I can think of is that if some logs are generated in the same instant of time, some of them may not be displayed (they're not even visible on the Event Log page).

Product version: IRIS 2021.1
Discussion (2)1
Log in or sign up to continue

No, I don't have any HTML-type formatting. This is the message displayed through the trace: 

object: 'No response or error was received in reply to the previous message, attempting to resend the message.',
retryCount: '3'
ResponseTimeout: '5'

To display this message in the visual trace, I used the following code:

$$$TRACE("object: 'No response or error was received in reply to the previous message, attempting to resend the message.', "_$CHAR(10)_"retryCount: '"_..RetryCount_"'"_$CHAR(10)_"ResponseTimeout: '"_httpRequest.Timeout_"'")

I used $CHAR(10) to insert a new line since the $$$TRACE command isn't affected by syntax like "\n."