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

FR5 status taken from the wrong part of the reply

RosaBrown0901 · 2026年4月7日 22:29 UTC

回复讨论
RO
RosaBrown0901
I need our dashboard to admit when it has no current reading. Since the environment change, the wrapper finds a number inside the SDK reply and shows it as status even when the request failed. The new reply has several fields. Where should the check live so the screen cannot make this mistake again?

8 条回复

LU
LucaCarter0961

Put the response interpretation in one adapter tied to the SDK version you're using. Check the request outcome before extracting the documented status field. I would test it with saved replies first; no need to involve the whole cell to catch a parser choosing the wrong number.

15
RO
RosaBrown0901

The developer found the wrapper taking the first element it could turn into an integer. We have replaced that with the documented field lookup. A saved failed request now gives unavailable, not a status.

6
FI
FionaArcher0412

What does a good reading followed by that failure show?

17
LU
LucaCarter0961

And try a successful request with the status field absent. I caught a similar hole recently: the outer reply looked fine, then the wrapper supplied its own cheerful default.

1
RO
RosaBrooks0814

Keep any previous reading visibly old, RosaBrown. The person checking the bench should not need to inspect the log to discover that the large status label is no longer current.

21
RO
RosaBrown0901

Both cases pass now. After failure the current field is unavailable; the last successful reading sits separately with its age. Missing status and unknown response shape also show unavailable. The maintainer tested startup, failure after success and recovery to a new success from the normal shortcut.

1
LU
LucaCarter0961

Thanks for checking recovery too. Has the export stopped presenting the retained value as current?

20
RO
RosaBrown0901

Yes. Export uses the same adapter result and identifies the retained reading separately. We compared the screen and exported rows through those cases after restarting the workstation. The maintainer has the restored environment and test examples; this one is closed.

9

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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