GeezerVison is showing github.com — pubsub error - Cannot read property 'onAuthorized' of undefined · Issue #466 · googleapis/google-cloud-node
pubsub error - Cannot read property 'onAuthorized' of undefined #466Labels 🚨This issue needs some love.api: pubsubIssues related to the Pub/Sub API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionCannot read property 'onAuthorized' of undefined,
TypeError: Cannot read property 'onAuthorized' of undefined
at onAuthorizedRequest (/home/leibale/workspace/images-processor/node_modules/gcloud/lib/common/util.js:397:19)
at /home/leibale/workspace/images-processor/node_modules/gcloud/node_modules/google-service-account/connection.js:56:5
at Connection.<anonymous> (/home/leibale/workspace/images-processor/node_modules/gcloud/node_modules/google-service-account/connection.js:116:5)
at processImmediate [as _immediateCallback] (timers.js:354:15)
Activitystephenplusplus commented on Mar 26, 2015 What version of gcloud are you using? If not master, would you mind testing against that, as we have made significant changes since 0.12.0 was released back in December. leibale commented on Mar 26, 2015 ContributorAuthor More actions i download from github and it's working.
thanks. stephenplusplus commented on Mar 26, 2015 leibale commented on Mar 29, 2015 ContributorAuthor More actions @stephenplusplus I got this error again
Cannot read property 'onAuthorized' of undefined,
TypeError: Cannot read property 'onAuthorized' of undefined
at onAuthorizedRequest (/home/leibale/workspace/images-processor/node_modules/gcloud/lib/common/util.js:478:19)
at /home/leibale/workspace/images-processor/node_modules/gcloud/node_modules/google-service-account/connection.js:56:5
at Connection.<anonymous> (/home/leibale/workspace/images-processor/node_modules/gcloud/node_modules/google-service-account/connection.js:116:5)
at processImmediate [as _immediateCallback] (timers.js:354:15)
ryanseys commented on Mar 29, 2015 Is there some method you are calling where you aren't specifying a callback? leibale commented on Mar 29, 2015 ContributorAuthor More actions only file.createReadStream() and file.createWriteStream(), but i listen to err and finish events ryanseys commented on Mar 29, 2015 Ok! If you have a small snippet we could run to reproduce this it would greatly speed up tracking down the bug. That line throwing the error is used by every api request. leibale commented on Mar 29, 2015 ContributorAuthor More actions i using file.createWriteStream(), file.createReadStream(), subscription.pull().
i think it's from subscription.pull(), but.
edit:
please reopen the issue leibale commented on Mar 30, 2015 ContributorAuthor More actions it's happening on subscription.ack(result.ackId); added a commit that references this issue on Feb 24, 2026This issue will close once commit bdaf328 is merged into the 'main' branch.bdaf328
MetadataMetadata🚨This issue needs some love.api: pubsubIssues related to the Pub/Sub API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DevelopmentNo branches or pull requestsIssue actions
|