alexa-pi / AlexaPi

Alexa client for all your devices! # No active development. PRs welcome # consider https://github.com/respeaker/avs instead
MIT License
1.33k stars 396 forks source link

FIXED: HTTP Error 500 when going to http://raspberryIP:5050 #422

Closed JacobMeister closed 6 years ago

JacobMeister commented 6 years ago

I've been stuck on this for a couple of hours and haven't found a fix in any other issue thread.

Your OS (including version) where you are running AlexaPi:

Raspbian

Your hardware platform and model you are running on:

raspberry pi 3b+

Python release (python2 --version):

Python 2.7.13

Description of problem:

Can't reach localhost:5050 or raspberryIP:5050, the page is not working

Expected:

amazon login page

Problem-relevant config.yaml entries:

# Amazon Alexa settings
alexa:
  Client_ID: "amzn1.application-oa2-client.3f4eXXXXXXXXXXXXXXXXXXd7"
  Client_Secret: "da984c25XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX75127baa"
  Device_Type_ID: "SchoolProjectPi"
  Security_Profile_Description: "SchoolProjectPi"
  Security_Profile_ID: "amzn1.application.170b26XXXXXXXXXXXXXXXXXXXXXXXd20ef"
  refresh_token:

Steps to reproduce:

  1. Follow instruction manual
  2. manually install cherrypy because i get this error => https://github.com/alexa-pi/AlexaPi/issues/415
  3. run setup normally
  4. go to http://192.168.178.38:5050

Traceback (if applicable):

Additional info:

I had the cherrypy issue which i solved by installing it manually. The setup script ran without problems after that.
I've doublechecked every single ID and secret, so either i'm blind or something else is wrong.

pi-ip-address

pi-info pi-security-info pi-origins-info

skkuvind commented 6 years ago

i am still getting this error "This page isn't working, localhost is currently unable to handle this request HTTP ERROR 500"

lucbors commented 6 years ago

Take a look here: https://github.com/alexa-pi/AlexaPi/issues/420#issuecomment-429301592 It might work for you too. In my case the 500 is caused by an error when running the auth_web.py. After installing another library, it worked for me

JacobMeister commented 6 years ago

Fixed it by following @lucbors instructions It was indeed a missing version of the six library Many thanks!