Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ViewResponse is missing error metadata #805

Closed
stevekuznetsov opened this issue Sep 24, 2020 · 0 comments
Closed

ViewResponse is missing error metadata #805

stevekuznetsov opened this issue Sep 24, 2020 · 0 comments

Comments

@stevekuznetsov
Copy link

In the Slack playground if I send an invalid modal view request I get this as a result:

{
    "ok": false,
    "error": "invalid_arguments",
    "response_metadata": {
        "messages": [
            "[ERROR] invalid `trigger_id` [json-pointer:\/trigger_id]"
        ]
    }
}

This is unmarshalled into:

{
  "ok": false,
  "error": "invalid_arguments",
  "view": {
    "ok": false,
    "error": "",
    "id": "",
    "team_id": "",
    "type": "",
    "title": null,
    "close": null,
    "submit": null,
    "blocks": null,
    "private_metadata": "",
    "callback_id": "",
    "state": null,
    "hash": "",
    "clear_on_close": false,
    "notify_on_close": false,
    "root_view_id": "",
    "previous_view_id": "",
    "app_id": "",
    "external_id": "",
    "bot_id": ""
  }
}

Which is missing the response metadata fields, making the error hard to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants