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

My Fairino FR10 dashboard believes an error response

ImranAli0218 · 2026年5月21日 11:07 UTC

回复讨论
IM
ImranAli0218
I'm fixing our diagnostic status retrieval dashboard for Fairino FR10 in a bench integration setup. Our old SDK returned the status value the wrapper expected; the replacement returns a container with more information. Failed requests can now look like plausible status readings. We use a fixture block as a reference, but the problem is interpreting the response.

12 条回复

JA
JackBrooks0863

@ImranAli0218 Got sanitized success and failure examples? Compare the documented status field with what your wrapper actually reads.

19
IM
ImranAli0218

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

9
JA
JackBrooks0863

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

21
SA
SarahChan1111

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

5
JA
JackBrooks0863

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

10
IM
ImranAli0218

@JackBrooks0863 I'm tempted to show unavailable for all three. Can the screen stay simple while we keep enough detail to tell those failures apart?

8
JA
JackBrooks0863

Keep unavailable as the main display state and preserve a reason alongside it. Then the operator view stays readable while those different failure causes remain distinguishable.

16
JA
JamieCarter0991

My screen kept the last good value after disconnect. People read it as current until we added an explicit unavailable label.

8
IM
ImranAli0218

@JamieCarter0991 I've checked our display and it keeps the previous value without labelling it as an older observation. The parsing fix alone wouldn't address that.

4
CA
CalebBrooks0841

@ImranAli0218 Why keep it? Wouldn't clearing an old mode be less confusing?

13
JA
JackBrooks0863

You can clear it. Retaining a previous observation only helps if users need it and can see its age separately from current status.

24
IM
ImranAli0218

@JackBrooks0863 I'll make our main field unavailable and put any previous observation in labelled diagnostic detail. That seems clearer for this screen.

16

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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