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 — pubsub error - Cannot read property 'onAuthorized' of undefined · Issue #466 · googleapis/google-cloud-node

pubsub error - Cannot read property 'onAuthorized' of undefined #466

New issue
Copy link
New issue
Copy link
Closed
#469
Closed
pubsub error - Cannot read property 'onAuthorized' of undefined#466
#469
Copy link
Assignees
stephenplusplus
Labels
🚨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.

Description

@leibale
leibale
opened on Mar 26, 2015
Issue body actions
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: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)

Activity

Next
  1. stephenplusplus commented on Mar 26, 2015

    @stephenplusplus
    stephenplusplus
    on Mar 26, 2015
    Contributor
    More actions

    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.

  2. stephenplusplus
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    api: pubsubIssues related to the Pub/Sub API.
    on Mar 26, 2015
  3. leibale commented on Mar 26, 2015

    @leibale
    leibale
    on Mar 26, 2015
    ContributorAuthor
    More actions

    i download from github and it's working.
    thanks.

  4. stephenplusplus commented on Mar 26, 2015

    @stephenplusplus
    stephenplusplus
    on Mar 26, 2015
    Contributor
    More actions

    Phew!

  5. stephenplusplus
    closed this as completedon Mar 26, 2015
  6. leibale commented on Mar 29, 2015

    @leibale
    leibale
    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)
    
  7. ryanseys commented on Mar 29, 2015

    @ryanseys
    ryanseys
    on Mar 29, 2015
    Contributor
    More actions

    Is there some method you are calling where you aren't specifying a callback?

  8. leibale commented on Mar 29, 2015

    @leibale
    leibale
    on Mar 29, 2015
    ContributorAuthor
    More actions

    only file.createReadStream() and file.createWriteStream(), but i listen to err and finish events

  9. ryanseys commented on Mar 29, 2015

    @ryanseys
    ryanseys
    on Mar 29, 2015
    Contributor
    More actions

    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.

  10. leibale commented on Mar 29, 2015

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

  11. ryanseys
    reopened this on Mar 30, 2015
  12. leibale commented on Mar 30, 2015

    @leibale
    leibale
    on Mar 30, 2015
    ContributorAuthor
    More actions

    it's happening on subscription.ack(result.ackId);

  13. leibale
    closed this as completedon Mar 30, 2015
  14. leibale
    reopened this on Mar 30, 2015
  15. 32 remaining items

  16. sofisl
    added 2 commits that reference this issue on Jan 27, 2026

    fix: add es2015 as target for tsconfig.json (#466)

    21e5adb

    fix: add es2015 as target for tsconfig.json (#466)

    0642d73
  17. miguelvelezsa
    added a commit that references this issue on Jan 28, 2026

    chore(docs): add an Error handling sample (#466)

    532494e
  18. sofisl
    added 3 commits that reference this issue on Feb 3, 2026

    chore(deps): update dependency typescript to ~3.5.0 (#466)

    84b2270

    chore: add config files for cloud-rad for node.js (#466)

    afb5b28

    chore(docs): add an Error handling sample (#466)

    974df48
  19. sofisl
    added a commit that references this issue on Feb 24, 2026

    Adding array-contains to error message (#465)

    This issue will close once commit bdaf328 is merged into the 'main' branch.
    bdaf328
  20. GautamSharda
    added a commit that references this issue on Feb 25, 2026

    ci: Enable `constraintsFiltering` for Node.js Libraries (#466)

    1abee64
  21. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    chore(deps): update dependency google-proto-files to v1 (#466)

    98deb2d
  22. sofisl
    added a commit that references this issue on Mar 5, 2026

    chore(deps): update dependency sinon to v16 (#466)

    27a7ab8
  23. GautamSharda
    added a commit that references this issue on Mar 12, 2026

    fix: capture message in ApiError.stack (#466)

    a2c31b1
  24. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    fix(deps): update dependency @google-cloud/projectify to v1 (#466)

    910fc65

    fix(deps): update dependency @google-cloud/projectify to v1 (#466)

    fd72115
  25. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    fix(deps): update dependency @google-cloud/projectify to v1 (#466)

    debc63f
  26. thiyaguk09
    added a commit that references this issue on May 5, 2026

    fix(deps): update dependency @google-cloud/projectify to v1 (googleap…

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

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

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

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.