My Fairino FR5 dashboard believes an error response (controller status polling)

RosaCarter0988 · 27 May 2026, 14:05 UTC

Reply to discussion
RO
RosaCarter0988
Our dashboard for controller status polling on Fairino FR5 expected a status value from the old SDK. The replacement environment returns a container with extra information, and our screen now shows a plausible status even when a request fails. This is in a workshop status-monitoring station, with an inspection coupon as a reference. I'm trying to fix how we interpret the answer

9 replies

AA
AaronBennett0697
Replying to RosaCarter0988

Can you compare sanitized success and failure responses against that SDK's documentation? The useful detail is which field your wrapper treats as status.

18 points
RO
RosaCarter0988
Replying to AaronBennett0697

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

11 points
AA
AaronBennett0697
Replying to RosaCarter0988

Replay both offline with a version-specific parser. Failure should return unavailable. That pair should cover the adapter.

11 points
EL
EllaBrown0903
Replying to AaronBennett0697

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

7 points
AA
AaronBennett0697
Replying to EllaBrown0903

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

17 points
RO
RosaCarter0988
Replying to AaronBennett0697

Can our screen just say unavailable, but retain the reason?

4 points
AA
AaronBennett0697
Replying to RosaCarter0988

@RosaCarter0988 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.

23 points
RO
RosaCarter0988
Replying to AaronBennett0697

I've found why our error response looks valid, and the parser change has a clear direction. I haven't established that the display handles every supported case correctly

16 points
AA
AaronBennett0697
Replying to RosaCarter0988

@RosaCarter0988 The cause of that plausible error reading is clearer. Keeping the broader display result open is fair.

7 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.