Skip to content

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

@jsimmonds2

Description

@jsimmonds2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions