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

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

Closed
leibale opened this issue Mar 26, 2015 · 9 comments · Fixed by #469
Closed

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

leibale opened this issue Mar 26, 2015 · 9 comments · Fixed by #469
Assignees
Labels
api: pubsub Issues related to the Pub/Sub API. 🚨 This issue needs some love. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@leibale
Copy link
Contributor

leibale commented Mar 26, 2015

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)
@stephenplusplus
Copy link
Contributor

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.

@stephenplusplus stephenplusplus added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. api: pubsub Issues related to the Pub/Sub API. labels Mar 26, 2015
@leibale
Copy link
Contributor Author

leibale commented Mar 26, 2015

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

@stephenplusplus
Copy link
Contributor

Phew!

@leibale
Copy link
Contributor Author

leibale commented Mar 29, 2015

@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
Copy link
Contributor

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

@leibale
Copy link
Contributor Author

leibale commented Mar 29, 2015

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

@ryanseys
Copy link
Contributor

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
Copy link
Contributor Author

leibale commented Mar 29, 2015

i using file.createWriteStream(), file.createReadStream(), subscription.pull().
i think it's from subscription.pull(), but.

edit:
please reopen the issue

@ryanseys ryanseys reopened this Mar 30, 2015
@leibale
Copy link
Contributor Author

leibale commented Mar 30, 2015

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

@leibale leibale closed this as completed Mar 30, 2015
@leibale leibale reopened this Mar 30, 2015
@leibale leibale mentioned this issue Mar 30, 2015
@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 7, 2020
sofisl pushed a commit that referenced this issue Sep 15, 2022
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/930a0ee2-572e-4cb1-b0f8-b78e3d5d5681/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: googleapis/synthtool@c6706ee
Source-Link: googleapis/synthtool@b33b0e2
Source-Link: googleapis/synthtool@898b38a
sofisl pushed a commit that referenced this issue Sep 16, 2022
…ript generator. (#466)

* fix: Updating WORKSPACE files to use the newest version of the Typescript generator.

Also removing the explicit generator tag for the IAMPolicy mixin for the kms and pubsub APIS as the generator will now read it from the .yaml file.

PiperOrigin-RevId: 385101839

Source-Link: googleapis/googleapis@80f4042

Source-Link: googleapis/googleapis-gen@d3509d2

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this issue Sep 27, 2022
@chingor13 has configured our runtime environment, such that we no longer need to explicitly provide a credentials file.

How does this magic work, I didn't fully understand?

Source-Author: Benjamin E. Coe <bencoe@google.com>
Source-Date: Fri Aug 7 19:02:09 2020 -0700
Source-Repo: googleapis/synthtool
Source-Sha: 94421c47802f56a44c320257b2b4c190dc7d6b68
Source-Link: googleapis/synthtool@94421c4
sofisl pushed a commit that referenced this issue Oct 5, 2022
…ript generator. (#466)

* fix: Updating WORKSPACE files to use the newest version of the Typescript generator.

Also removing the explicit generator tag for the IAMPolicy mixin for the kms and pubsub APIS as the generator will now read it from the .yaml file.

PiperOrigin-RevId: 385101839

Source-Link: googleapis/googleapis@80f4042

Source-Link: googleapis/googleapis-gen@d3509d2

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this issue Oct 5, 2022
…ript generator. (#466)

* fix: Updating WORKSPACE files to use the newest version of the Typescript generator.

Also removing the explicit generator tag for the IAMPolicy mixin for the kms and pubsub APIS as the generator will now read it from the .yaml file.

PiperOrigin-RevId: 385101839

Source-Link: googleapis/googleapis@80f4042

Source-Link: googleapis/googleapis-gen@d3509d2

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this issue Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. 🚨 This issue needs some love. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants