Fairino FR5: Our status wrapper reads too much into a container

AmyBrooks0815 · 4 Jun 2026, 06:10 UTC

Reply to discussion
AM
AmyBrooks0815
Our dashboard for controller availability reporting 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 bench integration setup, with a fixture block as a reference. I'm trying to fix how we interpret the answer

9 replies

TO
TobyAllen0318
Replying to AmyBrooks0815

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

22 points
AM
AmyBrooks0815
Replying to TobyAllen0318

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

14 points
TO
TobyAllen0318
Replying to AmyBrooks0815

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

7 points
LU
LuisBennett0782
Replying to TobyAllen0318

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

-1 points
TO
TobyAllen0318
Replying to LuisBennett0782

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

21 points
AM
AmyBrooks0815
Replying to TobyAllen0318

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

17 points
TO
TobyAllen0318
Replying to AmyBrooks0815

@AmyBrooks0815 Yes. One unavailable display state, distinct reasons in the result.

14 points
AM
AmyBrooks0815
Replying to TobyAllen0318

I've got an answer to the design question: parse the documented status for the identified SDK and keep failures unavailable. I'll call the display fix complete only when our offline examples show that behaviour on screen

2 points
TO
TobyAllen0318
Replying to AmyBrooks0815

Makes sense. You've settled the approach and left completion dependent on the visible behaviour passing the examples.

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