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

HTTP ERROR 500 KeyError: 'access_token' #490

Open steffx91 opened 4 years ago

steffx91 commented 4 years ago

Your OS (including version) where you are running AlexaPi: Note: Raspbian older than Stretch is not supported! newst Respbian downloaded it today ```

Your hardware platform and model you are running on:

Python release (python3 --version):

Description of problem:

Expected:

Problem-relevant config.yaml entries:

pi@raspberrypi:~ $ sudo systemctl status AlexaPi.service
● AlexaPi.service - Alexa client for all your devices
   Loaded: loaded (/usr/lib/systemd/system/AlexaPi.service; enabled; vendor pres
   Active: failed (Result: exit-code) since Thu 2020-03-12 23:46:46 CET; 6s ago
     Docs: https://github.com/alexa-pi/AlexaPi/wiki
  Process: 6145 ExecStart=/usr/bin/python3 /opt/AlexaPi/src/main.py --daemon (co
 Main PID: 6145 (code=exited, status=1/FAILURE)

Mär 12 23:46:45 raspberrypi python3[6145]: Traceback (most recent call last):
Mär 12 23:46:45 raspberrypi python3[6145]:   File "/opt/AlexaPi/src/main.py", li
Mär 12 23:46:45 raspberrypi python3[6145]:     token = Token(config['alexa'])
Mär 12 23:46:45 raspberrypi python3[6145]:   File "/opt/AlexaPi/src/main.py", li
Mär 12 23:46:45 raspberrypi python3[6145]:     self.renew()
Mär 12 23:46:45 raspberrypi python3[6145]:   File "/opt/AlexaPi/src/main.py", li
Mär 12 23:46:45 raspberrypi python3[6145]:     self._token = resp['access_token'
Mär 12 23:46:45 raspberrypi python3[6145]: KeyError: 'access_token'
Mär 12 23:46:46 raspberrypi systemd[1]: AlexaPi.service: Main process exited, co
Mär 12 23:46:46 raspberrypi systemd[1]: AlexaPi.service: Failed with result 'exi

Steps to reproduce:

  1. started over and over again
  2. checked all the Security numbers
  3. checked ips in amazon developer account