The code I'm trying to push is a JS built with Webpack. It's the first time since some month that I'm gettin this. A sample of the code I'm trying to upload is in this pastebin.
Any help would be so appreciated.
Thank u
Update:
If I copy/paste the code of the pastebin into the DM and then save, it works fine... So, I think, there is something wrong with the API
Does this happen for you every time you try to make this request? I was able to pass this JavaScript through the Templates API just now. I escaped the string before passing the request, and then used just Postman to make my request.
Could you provide some more details about how you're making the request? I wonder if there's something about your setup that's causing that error. It sounds like our API is encountering a character that isn't valid UTF-8.