Coder Social home page Coder Social logo

Comments (3)

swippy avatar swippy commented on August 28, 2024

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.

xdesign-ricardobarata avatar xdesign-ricardobarata commented on August 28, 2024

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.

xdesign-ricardobarata avatar xdesign-ricardobarata commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.