Inumedia / SlackAPI

.NET Implementation of the Slack team communication platform API.
MIT License
452 stars 243 forks source link

Debug API calls #182

Closed Bert-Proesmans closed 3 years ago

Bert-Proesmans commented 5 years ago

Hi guys,

I'm new to working with the Slack API and currently setting up my own app and bot-user. So far i attempted creating a SlackTaskClient with my 'Bot User OAuth Access Token'. Connecting fails with the following message

Error converting value "not_set_new_user" to type 'SlackAPI.SearchSort'. Path 'self.prefs.search_sort', line 1, position 340.

It's very similar to a recent issue that required a variant to be added on the same enum (#177).

I suppose this error is specific to my context; specifically using a brand new bot-user to connect to Slack. Anyway i'm having a hard time figuring out why the error occurs because the actual API request urls are abstracted away. Is it possible to add a constructor argument (Stream) which will be used to dump these urls, possibly other debug information? I think this would help a lot in finding out what is happening, why and reproducibility.

Thank you, Bert