-
Notifications
You must be signed in to change notification settings - Fork 378
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
Unhandled error log when user is not authorized #2097
Comments
How are you configuring your App? What receiver are you using? |
This is my App configuration:
Where authorize is the function on my original post. Here is my receiver:
|
What log level do you have set in production? Will you get I ask because if your authorize function raises an exception, that should be visible in the logs (see the code here). I am wondering if that is what is happening in this situation (but we don't know because perhaps the log level is only set to ERROR). If you're not seeing this warning, then that means the exception may not be coming from your authorize function but from somewhere else. |
I have setup info on my log level for production. What I managed to realized locally is that the error is coming from the user_change event. It happens when there is not a matching authorization, the user_change event is being triggered anyway if this context is usefull. This is an example of a debug log I get:
|
Can you set log level to DEBUG to help us figure out where the error is coming from? |
I'm also confused: if your authorize function is raising an exception when the |
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized. |
As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number. |
I am receiving requests from the user_change event for users that I do not acknowledged as authorized teams or users on my database. Whenever this happens I get a
[ERROR] An unhandled error occurred while Bolt processed an event
This is flooding my logs on production and I can't seem to find a solution to it. Please help!
I have this authorize in place:
Reproducible in:
The Slack SDK version
3.17.1
Node.js runtime version
21.6.1
Steps to reproduce:
(Share the commands to run, source code, and project settings)
Expected result:
Get a 401 status not a 500
Actual result:
Got the [ERROR] An unhandled error occurred while Bolt processed an event as a 500 status error
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: