简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

our FR5 dashboard turns a failed reply into available

HanaBrooks0796 · 2026年6月16日 22:15 UTC

回复讨论
HA
HanaBrooks0796
The replacement SDK returns a container where our read-only training dashboard used to expect one status value. A failed request still produces a plausible availability display. I want the adapter to establish what the reply means, not find a reassuring value somewhere inside it.

17 条回复

OW
OwenChen1182

What exactly came back on failure, and how did your code turn it into availability? I wouldn't infer success from a nonempty container, but I'd like to see the actual mistake before prescribing a decoder.

21
HA
HanaBrooks0796

The adapter tests whether the whole returned object is truthy. A failure response is still a nonempty object, so it becomes available. It never checks the documented result field.

3
EL
EllaBrown0903

Then available currently means something was returned, not that the read succeeded.

9
RE
RebeccaBrooks0865

I would keep the last successful reading separate from the current request state. We had a screen that retained a useful old value but made it look current, which was a different error from decoding the reply wrongly.

-10
TH
TheoChen1193

Rebecca, how could the reader tell it was old? A timestamp alone can look like a refresh time if the label does not explain what happened then.

18
RE
RebeccaBrooks0865

They could not reliably tell in the first version. The time was present but poorly named, so I would test the meaning with a reader rather than assume adding digits fixes the problem.

18
OW
OwenChen1182

For the decoder, use examples tied to the installed SDK version and check its documented success condition before interpreting the payload. Unknown shapes should be explicit failures of interpretation, not another route to available.

21
EL
EllaBrown0903

And before the first successful read? There is no old availability to preserve then.

1
HA
HanaBrooks0796

Our draft now starts with no current reading. Failed requests show unavailable, and any previous good value is labelled separately with its successful-read time. The adapter changes are in offline checks only.

2
TH
TheoChen1193

Does unavailable describe the controller itself or the ability to obtain a current reading? Those are different claims for the person deciding whom to call.

11
HA
HanaBrooks0796

The current reading, not proven controller unavailability. Good catch, Theo. I have changed the wording to current reading unavailable so a communication failure isn't presented as a controller diagnosis.

4
OW
OwenChen1182

Keep that distinction in any exported report as well. A careful screen and an overconfident CSV can still hand the next person the wrong conclusion.

19
RE
RebeccaBrooks0865

Hana, have you tried a successful reply followed by an unfamiliar one? That sequence would show whether an interpretation error accidentally leaves the old current-state label visible.

-2
HA
HanaBrooks0796

That offline sequence now marks the current reading unavailable and preserves the old value as historical. Unknown method calls fail too. Reconnect and slow-response behaviour still need tests.

19
EL
EllaBrown0903

Will a delayed reply be labelled with when it was read, rather than when the screen painted it?

20
HA
HanaBrooks0796

Not settled yet. I've added that to the slow-response case rather than treating the new timestamp label as complete.

3
TH
TheoChen1193

Then your decoder has improved under the tested cases, while freshness handling remains unfinished. I would keep those two statements together in the handover instead of marking the dashboard fixed.

7

参与讨论

欢迎来到 Application Robot

所有人都可以阅读论坛。登录或注册后即可发起讨论、回复或上传照片。

忘记密码?

注册账号即表示你同意我们的 使用条款 社区准则。请阅读我们的 隐私政策 ,了解我们如何处理你的信息。