Skip to content
New issue

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

Can we customize the error messages for interactions and events #2095

Open
2 tasks done
HarikaKonda01 opened this issue Nov 19, 2024 · 1 comment
Open
2 tasks done
Labels
pkg:web-api applies to `@slack/web-api` question M-T: User needs support to use the project

Comments

@HarikaKonda01
Copy link

I am using slack/oauth for installation and authorization. Use slack/web-api to handle events and interactions. I have two questions regarding error handling

  1. We get 'Operation timed out. Apps need to respond within three seconds', when there is a delay for interactions response. Can we customize these error messages. I want to change the message for my app for better user understanding.
    err1
    err2

  2. I am using message.im event for my slack app. Unfortunately sometimes my server might be down and event request might not be received by server. During cases like this, When the server is down, Is there a way that I can send a default message to the user in app dm in the message tab.

Packages:

  • @slack/web-api
  • @slack/oauth
@seratch seratch added question M-T: User needs support to use the project pkg:web-api applies to `@slack/web-api` and removed untriaged labels Nov 19, 2024
@seratch
Copy link
Member

seratch commented Nov 19, 2024

Hi @HarikaKonda01, thanks for asking the questions.

Can we customize these error messages. I want to change the message for my app for better user understanding.

The error indicator on the UI is not customizable. We recommend ensuring that your Slack app server is stable enough to reliably respond to requests from Slack.

I am using message.im event for my slack app. Unfortunately sometimes my server might be down and event request might not be received by server. During cases like this, When the server is down, Is there a way that I can send a default message to the user in app dm in the message tab.

The Slack platform server retries up to 3 times when your server does not respond (see https://api.slack.com/apis/events-api#retries). After that, there is no way to re-send the same event. If your app servers struggle to remain up 24/7, having a more robust frontend server, forwarding the requests to a queue server, and then having your backend consume the queued messages might be another option to explore.

I hope these were helpful to you, and hope you'll figure out a great solution for your use case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:web-api applies to `@slack/web-api` question M-T: User needs support to use the project
Projects
None yet
Development

No branches or pull requests

2 participants