Skip to content

InteractionOutput.value() throws an error for Actions with no output DataSchema #1228

@FadySalama

Description

@FadySalama

I encountered this problem while interacting with the TestThing. When invoking the "void-void" action, the action results in an 505: Internal Server Error with the message No schema defined. This is thrown inside value() as seen below:

checkActionInvocation("void-void", "undefined", typeof (await parameters.value()));

As no data schema is needed for an action with no output, calling value() on the interaction output throws an error. However, this behavior seems a little counterintuitive. I would think, intuitively, that an action without an output DataSchema would either provide no InteractionOutput at all or would provide and InteractionOutput with a value() method that resolves with undefined and an arrayBuffer() method that resolves with an empty array (maybe also undefined but it makes more sense you would actually get an array, but it's empty because there is no output).

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