Comment to Rocket Chat Issues - Unexpected token
I thought that you've added https on both UNA and Rocket.Chat.
If you changed only UNA URL and Rocket.Chat URL is the same - then in this case go to Rocket.Chat setting and make sure that there is correct UNA URL there.