You're using a separate bot to run your commands? You need to give permission to your bot from your main user. The access token is associated with your main user, so in the twitch.token alias you should be checking for your main user, not the bot.

To see what the real error is you can comment out the lines that remove the response: ;.remove %header | .remove %data and check those files (in your mircdir).

You need to load the json script, you can use the /load -rs script command or just paste the contents into a new file in the remote editor.