Skip to content

Importing file to BigQuery fails when apiResponse is undefined #1812

@sonicoder86

Description

@sonicoder86

Environment details

  • OS: Linux Ubuntu 14.04
  • Node.js version: 6.9.1
  • npm version: 3.10.3
  • google-cloud-node version: 0.37.0

Steps to reproduce

Uploaded a file to Google Cloud Storage
Started an import job to a BigQuery table with truncate (importAsync)
Got the following error:

 TypeError: Cannot read property 'status' of undefined at /app/node_modules/gcloud/lib/bigquery/job.js:337:20 at /app/node_modules/gcloud/lib/common/service-object.js:249:7 at Object.handleResp (/app/node_modules/gcloud/lib/common/util.js:133:3) at /app/node_modules/gcloud/lib/common/util.js:453:12 at Request.onResponse [as _callback] (/app/node_modules/retry-request/index.js:99:9) at self.callback (/app/node_modules/request/request.js:187:22) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at Timeout._onTimeout (/app/node_modules/request/request.js:762:12) at ontimeout (timers.js:365:14) at tryOnTimeout (timers.js:237:5) at Timer.listOnTimeout (timers.js:207:5)

Most of the time it works, we have been using it for weeks, now it is the first time it happened.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.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