stevenleeg / geemusic

A bridge between Google Music and Amazon's Alexa
GNU General Public License v3.0
662 stars 178 forks source link

Cannot get Heroku Setup - App Crashed errors #246

Open blewispunk opened 6 years ago

blewispunk commented 6 years ago

I am trying to get this setup with Heroku and having a challenge getting my server live and accessible. Whenver I access the app page in my browser I can see in the log the following issue:

app[web.1]: File "/app/geemusic/utils/music.py", line 17, in init app[web.1]: raise Exception("Unsuccessful login. Aborting!" app[web.1]: Exception: Unsuccessful login. Aborting! heroku[router]: at =error code=H13 desc -"COnnection closed without response" method=GET [then some more info] DEBUG in music [/app/geemusic/utils/music.py:28]

When I keep refreshing the page I then get a bunch of H10 App Crashed errors.

It looks like I am having difficulty with the login credentials but I have checked them over and over on heroku, and even tried turning off 2-factor authentication to see if it would work with my standard password and not the app-specific password I generated but no dice.

Any ideas?

fergyfresh commented 6 years ago

try to use the gmusicapi to login locally on a computer with all the same environment variables setup. Per the README though, it definitely states you need to turn 2factor auth off and use an app password supplied from google. That's what I use for mine.

api = GMusicWrapper.generate_api(logger=app.logger)

blewispunk commented 6 years ago

Thanks for the help! I have been trying to use gmusicapi but struggling figuring it out. I have no coding experience so a bit slow at this. I will figure it out eventually but wanted to let you know I did get your input and appreciate it!

fergyfresh commented 6 years ago

I can't log in using any new devices currently. Go up a level to this thread to find out what they are suggesting. https://github.com/simon-weber/gmusicapi/issues/620