Read the statement by Michael Teeuw here.
MM-GoogleAssistant Error: Unexpected end of JSON input
-
I have followed the guide and get al lthe way to the end without any issues until I go to generate a token
I have rebuilt the credentials in google cloud and redownloaded several times and still get this error
Can anyone point me in th right direction please ?
Thank you
Welcome to MMM-GoogleAssistant Token generator!
Note: The choice expects [Y or N] and does not need [Enter] to confirm
Do you want to install/reinstall MMM-GoogleAssistant token? [Y/n]
Your choice: Y
[GA] SyntaxError: /home/magicmirror/MagicMirror/modules/MMM-GoogleAssistant/credentials.json: Unexpected end of JSON inputcode_text
-
Please mark this topic as solved.
The only thing I can figure is that it too some time to propagate maybe ?
I haven’t changed anything yet this morning it was able to generate the token without any issues
Thank you for the help :)
-
@dood did you select the correct type on the cloud config? the credentials file has different formats depending on the type you select
-
@sdetweil Yes, its set as Web Application in CLoud config.
I followed the guids located here
-
@dood if you edit the credentials.json file, I think it should say web:{
to start…
-
@sdetweil It does.
If it helps here is the full contents of the credentials.json file
I have completely started from scratch 3 times now, those three times ere al lthe way from installing OS to this step. I have went back and reconfigured and redownloaded the json file at least 5 times and still exact same error, in exactly the same place
my os is
magicmirror@magicmirror:~$ uname -a Linux magicmirror 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux magicmirror@magicmirror:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm
{"web":{"client_id":"457148194700-qvcm.apps.googleusercontent.com","project_id":"ace-beanbag-413106","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"**REMOVED","redirect_uris":["https://googleassistant.bugsounet.fr"]}}
-
Please mark this topic as solved.
The only thing I can figure is that it too some time to propagate maybe ?
I haven’t changed anything yet this morning it was able to generate the token without any issues
Thank you for the help :)