We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried following the examples given in the example documentation to open a modal, and it did not work and produced an error invalid_arguments
invalid_arguments
After digging a bit, the actual error explanation returned was
[ERROR] must define submit to use input block [json-pointer:/view/blocks/0/input]
submit
input
It seems opening a modal via web.views.open(openModalPayload) requires the payload to have a submit field to work and will crash otherwise
web.views.open(openModalPayload)
This should be updated in the documentation (especially the "getting started" examples
x
[ ]
Filling out the following details about bugs will help us solve your issue sooner.
Select all that apply:
@slack/web-api
@slack/events-api
@slack/interactive-messages
@slack/rtm-api
@slack/webhooks
package version: @slack/web-api@^5.1.0", "@slack/web-api@^5.2.0"
node version: v11.5.0
Expected the example to work
{ Error: An API error occurred: invalid_arguments at Object.platformErrorFromResult (/.../node_modules/@slack/web-api/src/errors.ts:94:5) at WebClient.apiCall (/.../node_modules/@slack/web-api/src/WebClient.ts:159:13) at process.internalTickCallback (internal/process/next_tick.js:77:7) code: 'slack_webapi_platform_error', data: { ok: false, error: 'invalid_arguments', response_metadata: { messages: [Array], scopes: [Array] } } } { messages: [ '[ERROR] must define `submit` to use `input` block [json-pointer:/view/blocks/0/input]' ],
The text was updated successfully, but these errors were encountered:
Fix documentation slackapi#875
c9fa529
Thanks for finding + pointing out the issue. I created a pull request to fix this 🙌
Sorry, something went wrong.
Merge pull request #880 from shanedewael/fix-modals-docs
038927c
Fix documentation #875
I get
An API error occurred: invalid_arguments (node:637) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'view' of undefined
Successfully merging a pull request may close this issue.
Description
I tried following the examples given in the example documentation to open a modal, and it did not work and produced an error
invalid_arguments
After digging a bit, the actual error explanation returned was
It seems opening a modal via
web.views.open(openModalPayload)
requires the payload to have a submit field to work and will crash otherwiseThis should be updated in the documentation (especially the "getting started" examples
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Packages:
Select all that apply:
@slack/web-api
@slack/events-api
@slack/interactive-messages
@slack/rtm-api
@slack/webhooks
Reproducible in:
package version: @slack/web-api@^5.1.0", "@slack/web-api@^5.2.0"
node version: v11.5.0
Steps to reproduce:
Expected result:
Expected the example to work
Actual result / Attachment
The text was updated successfully, but these errors were encountered: