Why is an error response lighting the healthy indicator?

NoraChen1192 · 2025年4月5日 14:34 UTC

已关闭

主帖中文翻译暂不可用,以下显示英文原文;回复保留原文。 查看英文原文

NO
NoraChen1192
Our FR10 availability dashboard stayed green after a failed read in the rebuilt environment; the old code expected a single status value, while the new SDK returns a structured answer. I suspect we are testing whether an answer exists rather than whether the request succeeded, but I need to verify the interpretation before changing the screen.

15 条回复

JA
JasperCarter0986

Can you compare the raw successful and failed responses against the documentation for the installed version? I can't infer the structure from the word container, and guessing which element means healthy could just move the mistake somewhere less obvious.

7分
NO
NoraChen1192

The developer captured both and confirmed that the failed response is non-empty; our code converts the whole object to a Boolean.

11分
JA
JasperCarter0986

That explains the misleading green, although the replacement still needs to follow the documented success and data fields. A response being present and its status data being valid are two separate conditions.

17分
DA
DanielAbbott0043

Please show a failed read as unavailable or unknown, with wording your operators recognise. Leaving the old healthy value looking current makes me think nothing has changed, even if a small error message appears somewhere else.

11分
JA
JasperCarter0986

Good point. Preserve the last known value only if its age and stale state are clear; don't let a failed fresh request lend it the appearance of current evidence.

7分
NO
NoraChen1192

The draft now parses success before using the payload and marks failed reads unavailable; it also labels a retained last reading as stale with its observation time.

17分
JA
JasperCarter0986

Include malformed and unexpected responses in the tests as well as the documented failure example. Your display should not fall back to a plausible healthy value when parsing cannot establish a valid result.

7分
JA
JaneBaker0510

And use text as well as colour; green and grey alone won't explain this reliably

2分
NO
NoraChen1192

We added Current, Stale and Unavailable labels beside the value; the error explanation is accessible from the same area rather than a separate log page.

22分
VI
VictorBrooks0794

Does unavailable mean the robot stopped, or only that your screen can't read it?

14分
JA
JasperCarter0986

That distinction belongs in the label. The failed read establishes that the dashboard lacks current information; it does not by itself establish the equipment's physical state or whether it is operating.

13分
NO
NoraChen1192

We changed it to 'Current status unavailable' and clarified the connection error underneath. The earlier short label was too easy to read as an equipment diagnosis.

22分
DA
DanielAbbott0043

That wording is much clearer from the operator side. Try it with a saved normal reading followed by a failure, because that's when the reassuring old value is most likely to catch the eye first.

8分
NO
NoraChen1192

The developer verified successful, failed, malformed and stale sequences against the installed interface documentation, and operators reviewed the transitions. The false healthy indication is gone in those checks. We have deployed the corrected read-only display.

25分
JA
JasperCarter0986

Keep the installed SDK version with those captured examples. They're useful regression evidence when the environment changes again, and far less ambiguous than a screenshot of a green indicator.

6分

讨论已关闭

此讨论已连续六个月没有活动,现已关闭新回复。 最后活动: .