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

Timeout error after opening assistant #170

Closed
Lambada10 opened this issue Feb 22, 2021 · 9 comments
Closed

Timeout error after opening assistant #170

Lambada10 opened this issue Feb 22, 2021 · 9 comments
Labels
duplicate This issue or pull request already exists

Comments

@Lambada10
Copy link

Describe the bug
So I followed the documentation and set everything up in google cloud. Then I installed Google assistant app but it throws a timeout error. I tried reinstalling but it didn't help.

To Reproduce
Open assistant app

Expected behaviour
Assistant opens

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10 Build 20H2 Insider Beta 19042.804
  • Version 1.0.0-rc.2
@esau-morais
Copy link
Contributor

Duplicate of #39 and #80.

Seems like this issue is similar to #35. This is a bug which occurs due to passing a floating-point number to the setPosition() function, which is calculated based on your screen size. Thus, the only way to get around it for the time-being is to clone this repo (via git clone) and build it yourself (see How to build) since it has been fixed within the source but not released yet.

@Melvin-Abraham Melvin-Abraham added the duplicate This issue or pull request already exists label Feb 22, 2021
@Melvin-Abraham
Copy link
Owner

Closing as Duplicate

@Lambada10
Copy link
Author

Lambada10 commented Feb 22, 2021

I built it but I can't do anything in that
I cant go to settings to set API key or anything

Duplicate of #39 and #80.

Seems like this issue is similar to #35. This is a bug which occurs due to passing a floating-point number to the setPosition() function, which is calculated based on your screen size. Thus, the only way to get around it for the time-being is to clone this repo (via git clone) and build it yourself (see How to build) since it has been fixed within the source but not released yet.

@Melvin-Abraham
Copy link
Owner

@Lambada10 Can you elaborate and/or provide reproducible steps?

@Lambada10
Copy link
Author

2021-02-22.15-18.mp4

@Lambada10
Copy link
Author

I can send console errors

Uncaught Error: Failed to load C:\Users\user\AppData\Local\Programs\Google Assistant\resources\app.asar\node_modules\grpc\src\node\extension_binary\electron-v9.3-win32-x64-unknown\grpc_node.node. Cannot find module 'C:\Users\user\AppData\Local\Programs\Google Assistant\resources\app.asar\node_modules\grpc\src\node\extension_binary\electron-v9.3-win32-x64-unknown\grpc_node.node'
Require stack:
- C:\Users\user\AppData\Local\Programs\Google Assistant\resources\app.asar\node_modules\grpc\src\grpc_extension.js
- C:\Users\user\AppData\Local\Programs\Google Assistant\resources\app.asar\node_modules\grpc\src\client_interceptors.js
- C:\Users\user\AppData\Local\Programs\Google Assistant\resources\app.asar\node_modules\grpc\src\client.js
- C:\Users\user\AppData\Local\Programs\Google Assistant\resources\app.asar\node_modules\grpc\index.js
- C:\Users\user\AppData\Local\Programs\Google Assistant\resources\app.asar\node_modules\google-assistant\components\assistant.js
- C:\Users\user\AppData\Local\Programs\Google Assistant\resources\app.asar\node_modules\google-assistant\index.js
- C:\Users\user\AppData\Local\Programs\Google Assistant\resources\app.asar\app\src\index.html
    at Module._resolveFilename (internal/modules/cjs/loader.js:797)
    at Function.i._resolveFilename (electron/js2c/renderer_init.js:43)
    at Module._load (internal/modules/cjs/loader.js:690)
    at Function.Module._load (electron/js2c/asar.js:769)
    at Module.require (internal/modules/cjs/loader.js:852)
    at require (internal/modules/cjs/helpers.js:74)
    at Object.<anonymous> (C:\Users\user\AppData\Local\Programs\Google Assistant\resources\app.asar\node_modules\grpc\src\grpc_extension.js:32)
    at Object.<anonymous> (C:\Users\user\AppData\Local\Programs\Google Assistant\resources\app.asar\node_modules\grpc\src\grpc_extension.js:64)
    at Module._compile (internal/modules/cjs/loader.js:967)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1004)
main.js:3958 Uncaught ReferenceError: Cannot access 'mic' before initialization
    at _stopAudioAndMic (main.js:3958)
    at HTMLImageElement.close_btn.onclick (main.js:11)
    ```

@Melvin-Abraham
Copy link
Owner

@Lambada10 Seems like you did not install the dependencies after cloning this repo. Just go to the directory (which you cloned using git clone) and run the command npm install inside the directory. If you don't have the Windows Build Tools installed on your system, the build would fail. So, to resolve that you can run the following command before installing any dependencies:

Start PowerShell as Administrator and run:

npm install --global windows-build-tools

Or, if you are using Yarn:

yarn global add windows-build-tools

@Lambada10
Copy link
Author

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! g-assist@1.0.0-rc.2 postinstall: electron-builder install-app-deps
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the g-assist@1.0.0-rc.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2021-02-23T09_54_06_308Z-debug.log
2021-02-23T09_54_06_308Z-debug.log

@Lambada10
Copy link
Author

Ok it's working now. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants