I spent half the day after work just trying to add a new API endpoint for my ZenTube app. The return from JSON came out gibberish in the browser but perfectly fine with curl. So I knew it wasn’t the source that’s causing the issue, but the way the API digesting or returning the response.
I did found the fix after a few hours, you can read about it here.
Will continue to develop for ZenTube to deliver what I promised to my users. I wanted to play with Svelte though!