Skip to content

payload != body in middleware/listener args #61

@seratch

Description

@seratch

Currently, payload in middleware/listener args is an alias to body. This is not compatible with Bolt JS.

Reproducible in:

@app.action("action-id")
def handle_action(body, payload, action, ack):
    assert body != payload
    assert payload == action
    ack()

The slack_bolt version

The latest revision

Python runtime version

Any

OS info

Any

Steps to reproduce:

Run the above snippet in your Bolt app.

Expected result:

200 OK

Actual result:

500 Internal Server Error

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions