TypeError: Cannot read property '0' of undefined
spicerackk opened this issue · 2 comments
Describe the bug
TypeError: Cannot read property '0' of undefined
To Reproduce
Steps to reproduce the behavior:
- Go to 'sandbox'
- Enter username and command
- Hit Submit
- Get network error
Expected behavior
Command would be sent via sandbox
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- Platform Raspberry Pi 3B+
- Browser Opera
- Version 0.7.4
Additional context
Logs repeat these lines
0|www | at exports.setCredentials (/assistant_relay/helpers/auth.js:41:97)
0|www | at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|www | at async /assistant_relay/helpers/server.js:60:36
0|www | Assistant Relay Server Initialized
0|www | Visit http://172.30.33.4:3000 in a browser to configure
0|www | An update is available. Please visit https://github.com/greghesp/assistant-relay/releases
0|www | TypeError: Cannot read property 'getRequestHeaders' of undefined
0|www | at getAuthorizationHeaderFromGoogleCredential (/assistant_relay/node_modules/grpc/src/credentials.js:188:32)
0|www | at /assistant_relay/node_modules/grpc/src/credentials.js:219:5
0|www | at /assistant_relay/node_modules/grpc/src/credentials.js:166:5
Do you have the install completed correctly? It appears that the credentials are not found. Are you running inside docker or does some other user have access to the credentials file? Have you installed the Oauth file correctly?
Most likely this is because of your client_secret file. You probably are missing
"redirect_uris": ["https://****.firebaseapp.com/__/auth/handler"]
`
If you open your client secret file, add this before client_secret. To get the URL, You can try localhost, however you may need to go to OAth and look at the original key that was created. It should have the URLs in it