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 — BigQuery's table.import() callback is invoked improperly · Issue #495 · googleapis/google-cloud-node

BigQuery's table.import() callback is invoked improperly #495

New issue
Copy link
New issue
Copy link
Closed
#496
Closed
BigQuery's table.import() callback is invoked improperly#495
#496
Copy link
Assignees
yoshi-automation
Labels
🚨This issue needs some love.api: bigqueryIssues related to the BigQuery API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@jwngr
jwngr
opened on Apr 13, 2015
Issue body actions

If you pass a string filename into BigQuery's table.import() method, the callback is invoked with the improper arguments. The documentation says the callback should be called with this format:

function(error, job) { ... }

But it is actually invoked like this:

function(job) { ... }

This is caused by improperly handling the complete event of createWriteStream() on this line. The complete event fires with no error argument, but instead with the job as the first argument. So just forwarding the arguments onto callback results in the undocumented behavior.

A PR with a fix is coming right up!

Activity

Next
  1. ryanseys
    closed this as completedin #496on Apr 13, 2015
  2. jgeewax
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    api: bigqueryIssues related to the BigQuery API.
    on May 14, 2015
  3. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 6, 2020
  4. JustinBeckwith
    assigned
    yoshi-automation
    on Feb 1, 2021
  5. sofisl
    added 2 commits that reference this issue on Oct 11, 2022

    docs: add links to the CHANGELOG from the README.md for Java and Node (…

    43f1e9d

    docs: add links to the CHANGELOG from the README.md for Java and Node (…

    4bf7725
  6. sofisl
    added 7 commits that reference this issue on Nov 10, 2022

    chore: update license headers (#495)

    995e1e0

    fix: GoogleAdsError missing using generator version after 1.3.0 (#495)

    f60ce53

    docs(samples): add example tags to generated samples (#495)

    d520990

    chore: release 2.3.4 (#495)

    e6b5af8

    build(node): add KOKORO_BUILD_ARTIFACTS_SUBDIR to env (#495)

    343259f

    chore(deps): update dependency eslint-plugin-node to v11 (#495)

    0181d6c

    build: add @googleapis/api-kms team (#495)

    2e6d8d0
  7. 17 remaining items

  8. GautamSharda
    added a commit that references this issue on Feb 2, 2026

    chore: release 4.0.0 (#496)

    6bb066b
  9. sofisl
    added a commit that references this issue on Feb 3, 2026

    docs: update README to include latest samples (#495)

    b492d9f
  10. GautamSharda
    added 3 commits that reference this issue on Feb 3, 2026

    build!: drop support for node.js 8.x (#495)

    621756c

    chore: release 4.0.0 (#496)

    f165343

    build: missing closing paren in publish script (#495)

    b71c516
  11. GautamSharda
    added 2 commits that reference this issue on Feb 23, 2026

    build: missing closing paren in publish script (#495)

    48d558c

    build: missing closing paren in publish script (#495)

    67408b7
  12. sofisl
    added a commit that references this issue on Feb 26, 2026

    refactor(table): improve typescript defs (#495)

    214fc3d
  13. GautamSharda
    added 2 commits that reference this issue on Mar 5, 2026

    build: add configuration for automated doc deployment (#495)

    0e7341b

    fix(deps): force newer auth library with various fixes (#495)

    c97b89b
  14. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    chore(deps): update dev dependency p-queue to ^6.0.2 (#495)

    cc27327

    chore(deps): update dev dependency p-queue to ^6.0.2 (#495)

    99695dc
  15. feywind
    added a commit that references this issue on Mar 27, 2026

    test(samples): correctly handle publishTime value: (#495)

    753459c
  16. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    chore(deps): update dev dependency p-queue to ^6.0.2 (#495)

    d54a844
  17. thiyaguk09
    added a commit that references this issue on May 5, 2026

    chore(deps): update dev dependency p-queue to ^6.0.2 (googleapis#495)

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

Metadata

Metadata

Assignees

  • @yoshi-automation
    yoshi-automation

Labels

🚨This issue needs some love.api: bigqueryIssues related to the BigQuery 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.