On the AsyncApp we are using authorize function for validate the bot tokens
When we do not find the token, the api must return 200
But the typing of authorize
is
Optional[Callable[..., Awaitable[AuthorizeResult]]] = None,
instead of Optional[Callable[..., Awaitable[AuthorizeResult | None]]] = None,
I override the type to be like what the SDK allows, but we still get error log on each api call
This makes a noise and prevents us from focusing on actual errors
The source of the log is on AsyncMultiTeamsAuthorization

Reproducible in:
Call the Bolt app with an unauthorized event
The slack_bolt version
latest version
Python runtime version
3.11.0
OS info
any os
Steps to reproduce:
- Set up AsyncApp with authorize that can return None
- call with an unauthorized event
- See the log
Expected result:
a. remove the log / convert to info
b. param to ignore the log
c. any workaround that allows us to suppress the log
Actual result:
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
On the
AsyncAppwe are usingauthorizefunction for validate the bot tokensWhen we do not find the token, the api must return 200
But the typing of
authorizeis
Optional[Callable[..., Awaitable[AuthorizeResult]]] = None,instead of
Optional[Callable[..., Awaitable[AuthorizeResult | None]]] = None,I override the type to be like what the SDK allows, but we still get error log on each api call
This makes a noise and prevents us from focusing on actual errors
The source of the log is on AsyncMultiTeamsAuthorization

Reproducible in:
Call the Bolt app with an unauthorized event
The
slack_boltversionlatest version
Python runtime version
3.11.0
OS info
any os
Steps to reproduce:
Expected result:
a. remove the log / convert to info
b. param to ignore the log
c. any workaround that allows us to suppress the log
Actual result:
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.