GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Google Cloud IOT getClient example timeout with no other errors · Issue #603 · GoogleCloudPlatform/nodejs-docs-samples

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

New issue
Copy link
New issue
Copy link
Closed
Closed
Google Cloud IOT getClient example timeout with no other errors#603
Copy link
Assignees
gguuss

Description

@nburnett
nburnett
opened on Apr 21, 2018
Issue body actions

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.

Activity

  1. nburnett commented on Apr 21, 2018

    @nburnett
    nburnett
    on Apr 21, 2018
    Author
    More actions

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

  2. fhinkel commented on Nov 8, 2018

    @fhinkel
    fhinkel
    on Nov 8, 2018
    Contributor
    More actions

    @gguuss can you have a look? Thanks

  3. fhinkel
    assigned
    gguuss
    on Nov 8, 2018
  4. gguuss commented on Nov 9, 2018

    @gguuss
    gguuss
    on Nov 9, 2018
    Contributor
    More actions

    @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.

  5. fhinkel commented on Nov 10, 2018

    @fhinkel
    fhinkel
    on Nov 10, 2018
    Contributor
    More actions

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

  6. fhinkel
    closed this as completedon Nov 10, 2018
  7. ahrarmonsur
    added 5 commits that reference this issue on Nov 16, 2022

    chore(main): release 3.23.0 (#603)

    b2c7229

    chore(main): release 3.23.0 (#603)

    f822035

    chore(main): release 3.23.0 (#603)

    4398efd

    chore(main): release 3.23.0 (#603)

    23a9132

    chore(main): release 3.23.0 (#603)

    2e64cab
  8. ace-n
    added a commit that references this issue on Nov 17, 2022

    chore(main): release 3.23.0 (#603)

    0176b55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @gguuss
    gguuss

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.