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 — Cannot run npm run cover locally · Issue #309 · googleapis/google-cloud-node

Cannot run npm run cover locally #309

New issue
Copy link
New issue
Copy link
Closed
Closed
Cannot run npm run cover locally#309
Copy link
Assignees
stephenplusplus
Labels
🚨This issue needs some love.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Milestone
Core Stable

Description

@ryanseys
ryanseys
opened on Nov 23, 2014
Issue body actions

Well, both npm run test and npm run regression-test both run fine and pass but I cannot generate coverage report using npm run cover (which I thought just ran test and regression-test)?

Error I see:

  1) BigQuery "before all" hook:
     Uncaught TypeError: Cannot call method 'on' of undefined
      at Request.start (/Users/ryanseys/gcloud-node/node_modules/google-service-account/node_modules/gtoken/node_modules/request/request.js:930:12)
      at Request.write (/Users/ryanseys/gcloud-node/node_modules/google-service-account/node_modules/gtoken/node_modules/request/request.js:1689:10)
      at end (/Users/ryanseys/gcloud-node/node_modules/google-service-account/node_modules/gtoken/node_modules/request/request.js:687:14)
      at Object._onImmediate (/Users/ryanseys/gcloud-node/node_modules/google-service-account/node_modules/gtoken/node_modules/request/request.js:710:7)
      at processImmediate [as _immediateCallback] (timers.js:345:15)

Activity

Next
  1. ryanseys commented on Nov 24, 2014

    @ryanseys
    ryanseys
    on Nov 24, 2014
    ContributorAuthor
    More actions

    @stephenplusplus This looks like it's originating from google-service-account but also seems to dive into gtoken so I'm not sure whether it's you or me or something else that's causing this issue but I'm kind of at a loss as to what could cause this. Essentially in the request library @ request.js:930 there's a call for self.req.on(... and self.req is undefined for some reason. Either the request has been discarded or removed or never initiated? Any idea what could have caused this? It's especially weird because npm test and npm run regression-test both work fine. 😕

  2. stephenplusplus commented on Nov 24, 2014

    @stephenplusplus
    stephenplusplus
    on Nov 24, 2014
    Contributor
    More actions

    Will take a look now 🔍 👓 🐛 🔨

  3. stephenplusplus commented on Nov 24, 2014

    @stephenplusplus
    stephenplusplus
    on Nov 24, 2014
    Contributor
    More actions

    I seem to be getting a different stacktrace:

      1) BigQuery "before all" hook:
         Uncaught TypeError: Cannot call method 'on' of undefined
          at Request.start (/Users/stephen/dev/gcloud-node/node_modules/request/request.js:930:12)
          at Request.write (/Users/stephen/dev/gcloud-node/node_modules/request/request.js:1689:10)
          at end (/Users/stephen/dev/gcloud-node/node_modules/request/request.js:687:14)
          at Object._onImmediate (/Users/stephen/dev/gcloud-node/node_modules/request/request.js:710:7)
          at processImmediate [as _immediateCallback] (timers.js:345:15)
    

    Could I be doing something wrong?

  4. stephenplusplus commented on Nov 24, 2014

    @stephenplusplus
    stephenplusplus
    on Nov 24, 2014
    Contributor
    More actions

    Nm, updated request and get the same thing now.

  5. stephenplusplus
    added 2 commits that reference this issue on Nov 24, 2014

    fixes googleapis#309 - restore https.request

    This issue will close once commit 35be3ac is merged into the 'master' branch.
    35be3ac

    fixes googleapis#309 - restore https.request

    This issue will close once commit c591d0b is merged into the 'master' branch.
    c591d0b
  6. stephenplusplus
    closed this as completedin c591d0bon Nov 24, 2014
  7. stephenplusplus
    added a commit that references this issue on Nov 24, 2014

    Merge pull request #311 from stephenplusplus/spp--runcover

    This issue will close once commit ea22184 is merged into the 'main' branch.
    ea22184
  8. jgeewax
    added
    testing
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Feb 2, 2015
  9. jgeewax
    added this to the Core Stable milestone on Feb 2, 2015
  10. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 6, 2020
  11. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  12. chingor13
    added a commit that references this issue on Aug 22, 2022

    chore: linting (#309)

    75559c5
  13. 31 remaining items

  14. GautamSharda
    added a commit that references this issue on Feb 3, 2026

    chore: removing node6 CI (#309)

    5e6d200
  15. sofisl
    added a commit that references this issue on Feb 4, 2026

    chore(deps): update dependency @google-cloud/common to v1 (#309)

    80f111b
  16. GautamSharda
    added a commit that references this issue on Feb 5, 2026

    build: create docs test npm scripts (#309)

    be2c8b8
  17. GautamSharda
    added a commit that references this issue on Feb 23, 2026

    build: create docs test npm scripts (#309)

    961e391
  18. sofisl
    added 2 commits that reference this issue on Feb 24, 2026

    chore(deps): lock file maintenance (#309)

    8b8be62

    chore(deps): lock file maintenance (#309)

    5826c52
  19. GautamSharda
    added a commit that references this issue on Feb 26, 2026

    build: create docs test npm scripts (#309)

    ac4501b
  20. sofisl
    added a commit that references this issue on Feb 26, 2026

    Minor: wrap the inner error on retried transactions and return when d…

    797b4c7
  21. codyoss
    added a commit that references this issue on Mar 5, 2026

    chore: store nodejs build artifacts in placer (#309)

    3770be0
  22. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    refactor(ts): improve typescript types (#309)

    ceb7e95
  23. sofisl
    added a commit that references this issue on Mar 5, 2026

    chore: migrate code from googleapis/gcp-metadata (#53)

    fa9a454
  24. GautamSharda
    added 3 commits that reference this issue on Mar 11, 2026

    chore: update CircleCI config (#309)

    bf66ac3

    chore(deps): update dependency linkinator to v4 (#309)

    69848c4

    chore(deps): update dependency linkinator to v4 (#309)

    60edd68
  25. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    chore(deps): lock file maintenance (googleapis#309)

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

    • Core Stable

    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.