More debugging Rust APIs with React-Admin Integration | glowing-telegram project - Episode 111
In this episode, we delve into debugging our Rust APIs integrated with React-Admin for the Glowing-Telegram project. We start off with some typical build status checks. Then we move on to addressing some issues involving video and audio stream handling, specifically debugging why certain conditions aren't met when filtering MP4 files and configuring audio streams correctly. I realize that a missing audio stream in the test video caused a break in the workflow, so adjustments need to be made in the code handling audio and video stream checks. We troubleshoot these audio stream issues, attempt to fix the audio sample rate calculations, and make some code adjustments to verify the audio stream type correctly. After rebuilding the application, we focus on testing the file upload functionality to YouTube from the backend, noting the steps involved in fixing an issue related to authentication failures and logging in with YouTube credentials. We also address playlist associations with uploaded videos and rectify the application’s behavior when uploads fail due to credential issues. Adding tracing and logging, we debug the task payloads and inspect why certain task handlers aren't functioning as intended. By understanding various elements like previous task data and payload serialization, we ensure the task worker sends the correct information to our API. The session includes an interesting tangent where we write and discard some tests to better understand Serde JSON's handling. Lastly, after another break, we come back to add more logging to verify the data fetching logic and plan to debug further. Join me in this detailed journey through code adjustments, debugging, and testing to enhance our project’s robustness.
🔗 Check out my Twitch channel for more streams: / saebyn
GitHub: https://github.com/saebyn/glowing-tel...
Discord: / discord