Comments (3)
I have similar issues as mentioned above, but this is how it happened.
- Type a slack command where it triggers to show a modal (using views.open)
- Fill in some input and click the submit button where it triggers a new modal (views.open) with external_id 'foo'
- Somehow (occasionally), the next modal failed to be shown (not sure why)
- I redo above steps, from typing slack command to show the first modal
- But before I can go to the next modal, it throws duplicate_external_id error
I happened all the time. I have to modify my script to avoid of using this external_id parameter to solve the case.
I believe if there is no issue with this external_id, this external_id usage would benefit to my script without having ugly workaround solution.
Please solve this issue.
from slack-api-specs.
Just giving this one a bump! Seems like it has been opened for quite a while. In the meantime I'll have to find a work around too :D
from slack-api-specs.
For my particular use case I found that I could replace
await client.views.update({
external_id: <external_id>
trigger_id: body.trigger_id,
view: <updated_view>
});
by
await client.views.update({
view_id: body.view.id,
trigger_id: body.trigger_id,
view: <updated_view>
});
all this comes wrapped in
export const <nameoftheCallback>: Middleware<
SlackActionMiddlewareArgs<BlockAction>
> = async ({ body, ack, client }) => {
Feels a bit slower (maybe just on my eyes), but at least is not giving me any issues
from slack-api-specs.
Related Issues (20)
- Get all the messages with replies HOT 4
- Enhancement request: OpenAPI 3.0 support
- "token" header parameter not actually required
- Incomplete "consumes" definition for chat.postMessage
- Q: Bot vs. User token for reminders methods HOT 2
- Specify token type(s) for API methods in the spec
- Event payload of the `message` event does not have a consistent schema (missing `team` property when message subtype is `file_share`)
- 85 validation errors reported in Swagger Editor HOT 2
- Mark Repo as Unmaintained HOT 1
- `team.billableInfo` is wrong
- Request-URI Too Large for views.publish
- "Objs_user" has it's properties in a list called "items" but this isn't the case for the API - lookupByEmail
- Incorrect schema for calls.add and calls.info
- Required parameters are not marked as required
- Missing email_password_policy_enabled in admin.users.invite parameters
- objs_messages schema is wrong
- objs_file's user_team is wrong
- objs_message's attachment says id should be required but it is not always present
- Spec version is out of date with what the api allows
- Add the ability to slack API to query saved messages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slack-api-specs.