farmbot_os icon indicating copy to clipboard operation
farmbot_os copied to clipboard

Sequence Not Found error is not sent back to MQTT RPC Client

Open jsimmonds2 opened this issue 2 years ago • 0 comments

Was playing around with the farmbot-js package today and noticed that {:error, "sequence not found"} cases aren't handled and just display on the FBOS Console log ( via stderr ? ) instead of being bundled up and returned to the the RPC Client as other errors are, so my JS program just quietly hangs ⏲️ . . .

There's an argument, I suppose, that I should enumerate all Sequences and check that the desired Sequence Id is available before trying to schedule it for execution, but the race condition there still exists ! ( that sequence can be deleted before I try to schedule it )

Here's the error splashed onto the IEx console 🙁

image

jsimmonds2 avatar Jun 23 '22 06:06 jsimmonds2