title: SlackBot: Dialog is not invoked from App home
body: <p>Error invoking a dialog from Slack new app home using a button. Using AWS lambda and NodeJS.
  Link followed: <a href="https://api.slack.com/tutorials/app-home-with-modal" rel="nofollow noreferrer">https://api.slack.com/tutorials/app-home-with-modal</a></p>
  
  <p>Sample API call:</p>
  
  <p><code>POST https://slack.com/api/views.open</code></p>
  
  <p>Body:</p>
  
  <pre><code>{"view": "{'type':'modal','title':{'type':'plain_text','text':'Request leave','emoji':true},'submit':{'type':'plain_text','text':'Submit','emoji':true},'close':{'type':'plain_text','text':'Cancel','emoji':true},'blocks':[{'type':'divider'},{'type':'input','element':{'type':'datepicker','placeholder':{'type':'plain_text','text':'Select a date','emoji':true}},'label':{'type':'plain_text','text':'Start date','emoji':true}},{'type':'input','optional':true,'element':{'type':'datepicker','placeholder':{'type':'plain_text','text':'Select a date','emoji':true}},'label':{'type':'plain_text','text':'End date','emoji':true}},{'type':'input','label':{'type':'plain_text','text':'Reason','emoji':true},'element':{'type':'plain_text_input','multiline':true},'optional':true}]}",
    "trigger_id": "9%%%%00d5bb3e5"
  }
  </code></pre>
  
  <p>Headers:</p>
  
  <pre><code>Content-Type =&gt; application/json; charset=iso-8859-1
  Authorization =&gt; Bearer  xoxb-94*******
  </code></pre>
  
  <p>Error:</p>
  
  <p><code>{"ok":false,"error":"dispatch_failed"}</code> in the browser network tab</p>
  
  <p>Update: <code>http_service_error</code> when I use <code>slash command</code> with <code>dialog.open</code> / <code>views.open</code></p>