Repository navigation
Have code suggestion log message for unmatched request patterns #954
Description
Activity
- addedenhancementM-T: A feature request for new functionalityM-T: A feature request for new functionalitygood first issueGood for newcomersGood for newcomers
on Jun 3, 2021 TheManWhoStaresAtCode commented
on Nov 25, 2021 ContributorMore actionsAs I was debugging my event listener in the app for quite some time and I think this functionality would have helped me a lot I would love to contribute here. However, I'm quite unsure where I need to do the required adjustments - where is this statement
Unhandled request ({"event": {"type": "message"}, "type": "event_callback"})actually logged?Apart from this starting point, I checked the python implementation here and would have implemented it very similar also here. Is this what was intended by you?
@TheManWhoStaresAtCode Yes, this issue is for implementing the same (or mostly the same) thing with bolt-python / bolt-java. Checking the test code may be also helpful. https://github.com/slackapi/bolt-python/blob/main/tests/slack_bolt/logger/test_unmatched_suggestions.py
TheManWhoStaresAtCode commented
on Nov 25, 2021 ContributorMore actionsOk thanks will also check this test code. However, I still don't know where to put the respective code in the TS project. Can you point me at least to the proper file?
Although I haven't taken time to thoroughly think about the best design yet, in the case of bolt-js, the unhandled request error logging is done on the receiver side. Thus, you can place a reusable (= it does not depend on any specific modules/packages such as Node's
httpmodule interface) utility as a new file under thereceiversdirectory and import it in each receiver.
Description
As we implemented in Python and Java, we can provide the similar guidance log messages in Bolt for JS.
What type of issue is this? (place an
xin one of the[ ])Requirements (place an
xin each of the[ ])