Skip to content

bug(ao.send): silent fail when values are not strings #445

@skyf0xx

Description

@skyf0xx

Failing to properly encode data for ao.send() fails silently instead of generating an error

Replication:

local table = {
  'value1',
  'value2'
}

This works:

 ao.send({
    Target ='target',
    Action = "action",
    Data = json.encode(table), --works
  })

This fails silently where no message is sent.

 ao.send({
    Target ='target',
    Action = "action",
    Data = table, --silent fail for unencoded table
  })

Expected behavior - error message

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