Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property '0' of undefined #230

Open
spicerackk opened this issue Feb 22, 2021 · 2 comments
Open

TypeError: Cannot read property '0' of undefined #230

spicerackk opened this issue Feb 22, 2021 · 2 comments

Comments

@spicerackk
Copy link

spicerackk commented Feb 22, 2021

Describe the bug
TypeError: Cannot read property '0' of undefined

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'sandbox'
  2. Enter username and command
  3. Hit Submit
  4. 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
@ryancasler
Copy link
Contributor

ryancasler commented Feb 22, 2021

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?

@Betanu701
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants