alexa-pi / AlexaPiDEPRECATED

DEPRECATED - Use https://github.com/alexa-pi/AlexaPi instead ...Turn a Raspberry Pi into an Alexa Client
https://github.com/alexa-pi/AlexaPi
MIT License
587 stars 442 forks source link

Issue when getting to the login screen for AlexaPi #134

Closed TheFonix closed 7 years ago

TheFonix commented 7 years ago

I'm having the same issue, but i already have the device name set to my_device, as soon as i hit the ok button to get the key from the AlexaPi it shows up with

We're sorry! An error occurred when we tried to process your request

Any ideas? Seems nobody else is having this now since the device name fixed it, I've tried moving the directory I launch it from, I've tried flashing and putting a new install on rasp on, I've also tried a new amazon account and nothing seems to work. The allowed URL's are correct for sure, I've got http://localhost:5000 and http://localhost:5000/code as a return so not sure what else it could be.

YOUN3SS commented 7 years ago

Are you doing this directly in the Raspberry Pi browser or by SSH?

TheFonix commented 7 years ago

Sorry, that's through the web browser, on both my computer and then the browser inside of the raspberry pi, I doubled check the allowed url's too and they were correct, I have both local host in there and the IP address of the pi so I could access it remotely and I get past all of the login part but as soon as I click ok for it to generate the secret key I get the error message (We're sorry etc...)

YOUN3SS commented 7 years ago

Try to create a new device, and in the Web Settings put again:

Allowed Origins http://localhost:5000 http://raspberrypi:5000

Allowed Return URLs http://localhost:5000/code http://raspberrypi:5000/code

These addresses work for me.

TheFonix commented 7 years ago

Tried that, no luck

maso27 commented 7 years ago

Here's what's required to generate the refresh token:

1.) creds.py must have correct values for

...available under General at developer.amazon.com

2.) Web Settings at developer.amazon.com must be set correctly

If you login via your Raspi browser, type the IP address into the browser, not localhost. If you would rather type localhost into the browser, replace the x's above with localhost. This only works from the browser within the raspberry pi.

It sounds like folks have had mixed success using raspberrypi.local instead of the IP address, but again, you should type into the browser what you have entered into your Web Settings.

3.) run _authweb.py as root, then go to port 5000 of your ip address from a browser on the local network.

I can't think of anything else that's necessary, and when I've had issues, I have made some mistake within one of the three items listed above.

TheFonix commented 7 years ago

Ok, thanks! I'll try it out soon

renekliment commented 7 years ago

Does it work for you yet?

illperipherals commented 7 years ago

I have a little bash script that comes in handy. I thought I had posted it up here, but I can dig it up.

renekliment commented 7 years ago

This project is now deprecated in favor of the new AlexaPi (https://github.com/alexa-pi/AlexaPi) which has all the features of this project and much more, such as:

Please switch over to the new project and if your issue persists there, file an issue in the new repo's issue tracker. Thank you.