My Fairino FR10 dashboard believes an error response

ImranAli0218 · 21 May 2026, 11:07 UTC

Reply to discussion
IM
ImranAli0218
I'm fixing our diagnostic status retrieval dashboard for Fairino FR10 in a bench integration setup. Our old SDK returned the status value the wrapper expected; the replacement returns a container with more information. Failed requests can now look like plausible status readings. We use a fixture block as a reference, but the problem is interpreting the response.

12 replies

JA
JackBrooks0863
Replying to ImranAli0218

@ImranAli0218 Got sanitized success and failure examples? Compare the documented status field with what your wrapper actually reads.

19 points
IM
ImranAli0218
Replying to JackBrooks0863

@JackBrooks0863 Found it. We're checking whether the outer container is nonempty. Our error response passes without containing a valid status. Brilliant.

9 points
JA
JackBrooks0863
Replying to ImranAli0218

@ImranAli0218 Start a narrow parser for this version and replay your two examples offline. Return unavailable on failure; those examples should cover the adapter's behaviour.

21 points
SA
SarahChan1111
Replying to JackBrooks0863

That covers this bug. What about a transport exception or missing field? Neither has to look like your saved error

5 points
JA
JackBrooks0863
Replying to SarahChan1111

Fair point. Those two are a regression case, not full coverage. The adapter also needs documented error cases, transport exceptions and malformed responses exercised.

10 points
IM
ImranAli0218
Replying to JackBrooks0863

@JackBrooks0863 I'm tempted to show unavailable for all three. Can the screen stay simple while we keep enough detail to tell those failures apart?

8 points
JA
JackBrooks0863
Replying to ImranAli0218

Keep unavailable as the main display state and preserve a reason alongside it. Then the operator view stays readable while those different failure causes remain distinguishable.

16 points
JA
JamieCarter0991
Replying to JackBrooks0863

My screen kept the last good value after disconnect. People read it as current until we added an explicit unavailable label.

8 points
IM
ImranAli0218
Replying to JamieCarter0991

@JamieCarter0991 I've checked our display and it keeps the previous value without labelling it as an older observation. The parsing fix alone wouldn't address that.

4 points
CA
CalebBrooks0841
Replying to ImranAli0218

@ImranAli0218 Why keep it? Wouldn't clearing an old mode be less confusing?

13 points
JA
JackBrooks0863
Replying to CalebBrooks0841

You can clear it. Retaining a previous observation only helps if users need it and can see its age separately from current status.

24 points
IM
ImranAli0218
Replying to JackBrooks0863

@JackBrooks0863 I'll make our main field unavailable and put any previous observation in labelled diagnostic detail. That seems clearer for this screen.

16 points

Add to the discussion

Welcome to Application Robot

Everyone can read the forum. Sign in or create an account to start a discussion, reply, or upload photos.

Forgot your password?

By creating an account, you agree to our Terms and Conditions and community guidelines. Read our Privacy Policy for how your information is handled.