I am having this exact problem on a fresh (my first) install, did you ever determine the solution?
I re-generated multiple times and tripled checked the domain format.
Hi again!
Your problem has been fixed, check it up please. The reason - in the end of your secret in the General setting you entered some Tab or Space symbols.
I am back to the "error occurred" message when clicking the download button on any app.