Skip to content

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

Description

@nburnett

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

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

Metadata

Metadata

Assignees

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