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

Fairino FR5: Why does a failed status request still look healthy?

PavelBaker0440 · 2026年5月23日 15:44 UTC

回复讨论
PA
PavelBaker0440
I'm fixing our read-only mode reporting dashboard for Fairino FR5 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 an inspection coupon as a reference, but the problem is interpreting the response.

14 条回复

LO
LouisBell0659

Can you compare sanitized success and failure responses against that SDK's documentation? The useful detail is which field your wrapper treats as status.

7
PA
PavelBaker0440

I've checked our saved examples. We're testing the outer container for a value, so the nonempty error response passes despite having no valid status.

13
LO
LouisBell0659

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

9
RO
RobinBaker0512

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

9
LO
LouisBell0659

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

13
PA
PavelBaker0440

Can our screen just say unavailable, but retain the reason?

16
LO
LouisBell0659

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.

19
IS
IsabelBennett0735

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

17
PA
PavelBaker0440

@IsabelBennett0735 Ours does that too. No old-observation label. Fixing the parser would still leave that misleading value sitting there.

9
JO
JoAli0244

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

16
LO
LouisBell0659
回复 JoAli0244

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

16
PA
PavelBaker0440

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

2
PA
PavelBaker0440

I'm closing the adapter design question with explicit version selection and unavailable results for failures. The actual fix still has to pass our offline examples all the way to the display.

15
LO
LouisBell0659

@PavelBaker0440 Makes sense. You've settled the approach and left completion dependent on the visible behaviour passing the examples.

9

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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