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

Google Cloud IOT getClient example timeout with no other errors #603

Closed
nburnett opened this issue Apr 21, 2018 · 4 comments
Closed

Google Cloud IOT getClient example timeout with no other errors #603

nburnett opened this issue Apr 21, 2018 · 4 comments
Assignees

Comments

@nburnett
Copy link

Any time I try to use the example located here: https://cloud.google.com/iot/docs/how-tos/credentials/authenticating-applications, It will always fail with the following error while running locally through the Function Emulator:

info: Execution took 60000 ms, finished with status: 'timeout'
info: Execution took 60012 ms, finished with status: 'crash'

I'm not sure how to debug this as there is no other information, this part of the example seems to be the issue:

// discoveryURL = https://cloudiot.googleapis.com/$discovery/rest?version=v1
google.discoverAPI(discoveryUrl, {}, (err, client) => {
    if (err) {
      console.log('Error during API discovery', err);
      return undefined;
    }
    cb(client);
  });

What I'm seeing is the google.discoverAPI() is being called and the callback function is never called and there is no other error other than the timeout.

Any help would be much appreciated.

@nburnett
Copy link
Author

I'm currently using googleapis version 28.1.0 and have tried latest with the same results.

@fhinkel
Copy link
Contributor

fhinkel commented Nov 8, 2018

@gguuss can you have a look? Thanks

@gguuss
Copy link
Contributor

gguuss commented Nov 9, 2018

@nburnett Try looking at the Device to Device communication tutorial and see if the code there is working for you. The code in the NodeJS repository may be out of date with what's necessary to use Google Cloud Functions.

@fhinkel
Copy link
Contributor

fhinkel commented Nov 10, 2018

Thanks @gguuss . Closing this. @nburnett , please reopen if the issue still persists.

@fhinkel fhinkel closed this as completed Nov 10, 2018
ahrarmonsur pushed a commit that referenced this issue Nov 16, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ahrarmonsur pushed a commit that referenced this issue Nov 16, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ahrarmonsur pushed a commit that referenced this issue Nov 16, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ahrarmonsur pushed a commit that referenced this issue Nov 16, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ahrarmonsur pushed a commit that referenced this issue Nov 16, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ace-n pushed a commit that referenced this issue Nov 17, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
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