question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`invalid_service` error in slack slash commands

See original GitHub issue

Description

Describe your issue here.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I’ve read and understood the Contributing guidelines and have done my best effort to follow them.
  • I’ve read and agree to the Code of Conduct.
  • I’ve searched for any related issues and avoided creating a duplicate issue.

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
  • I don’t know

Reproducible in:

package version: Not Applicable

node version: 12.x

OS version(s): Windows 10

Steps to reproduce:

  1. Create a slack app and create a new slash command, add url, details, etc.
  2. Reinstall the app on development workspace
  3. Open slack client, type the slack command (which is visible in the popup meaning it has synced)

Expected result:

Slack accepts the command and hits my provided url using HTTP POST verb along with payload

Actual result:

Slackbot returns a silly error “failed with the error invalid_service”. My endpoint doesn;t receive any hit from slack.

P.S. Sometimes the command is there in the popup but its details like description, etc are gone as shown in screenshot # 2. Then, I reinstall the app and it comes back as shown in screenshot # 3.

I’ve googled a lot about this problem searched YouTube but didn’t find any clue about whats wrong with it. Please help me I’m working on a project and deadline is really near 😞 I’ve spent a whole day meddling with it but to no avail.

Attachments:

Logs, screenshots, screencast, sample project, funny gif, etc. image image image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
AHMED3Tcommented, Apr 28, 2020

Thank you @seratch, revoking all tokens and reinstalling the app has solved my problem 😄. I’m closing this issue now. Thanks once again. 👍

1reaction
rnaimicommented, Oct 13, 2020

Is there a fix for this issue? We keep running into this every so often and it’s very frustrating to revoke and reissue tokens and redeploy the app

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enabling interactivity with Slash Commands - Slack API
Slash Commands allow users to invoke your app by typing a string into the message composer box. A submitted Slash Command will cause...
Read more >
slash command "dispatch_failed" - slack - Stack Overflow
So it was returning this message. I fixed that, used ngrok for tunnel so that I could debug and that is how I...
Read more >
failed with the error "operation_timeout" | Slack Community
I am using Slack Slash commands to send requests to my AWS Lambda python app by an AWS API Gateway. However, after sending...
Read more >
Slash Commands | Slack SDK for Java
Your app has to respond to the request within 3 seconds by ack() method. Otherwise, the user will see the timeout error on...
Read more >
Slack Integration using Slash command - ServiceNow
However, when I execute the command, I am getting the error: "/servicenow failed with error dispatch_failed". I have performed following actions ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found