fr5 dashboard takes a failed reply as availability

JackAli0254 · 14 Apr 2026, 09:11 UTC

Reply to discussion
JA
JackAli0254
Our updated SDK returns more than the status value now. The dashboard wrapper treats the whole reply as a reading, and failed queries can look available. Which cases should the maintainer capture?

5 replies

BE
BethBrown0933
Replying to JackAli0254

Capture the documented successful reply with its value, a failed query, a missing value and an unexpected response shape for the exact SDK version. Feed them through the same parser the dashboard uses. A non-empty container can look wonderfully reassuring while containing an error.

9 points
JA
JackAli0254
Replying to BethBrown0933

That is the mistake: the wrapper tests whether the reply container is non-empty. The maintainer has matched the call and documented response format.

16 points
BE
BethBrown0933
Replying to JackAli0254

Include a genuine negative status and a legitimate zero where the contract allows it. Otherwise the repair might just trade always available for always unavailable. What happens before any successful reading?

21 points
JA
JackAli0254
Replying to BethBrown0933

Startup now shows no current reading. Documented positive, negative and zero values pass; failed, malformed and incomplete replies show unavailable. The installed dashboard passed the captured-response checks, including a valid read after failure.

8 points
BE
BethBrown0933
Replying to JackAli0254

Good, the valid read after failure matters. Keep those captures with the installed version so the next SDK change has something less optimistic than a non-empty test to beat.

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.