instill-ai / instill-core

🔮 Instill Core is a full-stack AI infrastructure tool for data, model and pipeline orchestration, designed to streamline every aspect of building versatile AI-first applications
https://www.instill.tech
Other
2.16k stars 107 forks source link

[Improvement] Improve error messages context in Slack component #1140

Open Joycelyn-Chen opened 1 month ago

Joycelyn-Chen commented 1 month ago

Is There an Existing Issue for This?

Are you willing to own the issue?

Where are you aiming to make improvements?

Instill Cloud

Is your Proposal Related to a Problem?

As mentioned in the discord #office-hour-chat, Slack SDK didn't contain much information about the cause of the error, making the debugging process when developing the Slack component extremely challenging.

Describe Your Proposed Improvement

As suggested by @jvallesm, we might be able to retrieve some key information by constructing a custom HTTP client and render the cause of the error from there.

Highlight the Benefits

So that everyone could enjoy developing the slack component better!

Anything Else?

I'm very interested in contributing to the custom HTTP client construction, I'm just wondering if this is still a valid direction to work towards?

linear[bot] commented 1 month ago

INS-6703 [Improvement] Improve error messages context in Slack component

jvallesm commented 1 month ago

Hi @Joycelyn-Chen thanks for opening this ticket! It seems a good issue, let me complete a bit your information with what I had in mind. Let's take the conversations list endpoint, for example.

💭 If this approach didn't work, the OptionDebug might be worth checking. Although it's not for production code, it can help devs understand what the SDK is doing.