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

Encountered an exception by network error. #918

Closed
otolab opened this issue Oct 28, 2015 · 3 comments
Closed

Encountered an exception by network error. #918

otolab opened this issue Oct 28, 2015 · 3 comments
Assignees
Labels
core type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@otolab
Copy link

otolab commented Oct 28, 2015

My utility has encountered an exception. It's occurred in the "libs/common/utils.js" by network error.

Looks like a regression from 8b2bbf2#diff-638107c62532c8d249c9f17a0c7fb355L169

resp check has been removed. therefore, It throws an exception when httpRespMessage is undefined.

I wrote fix patch. please see pull request.

@dg3feiko
Copy link

I encounter the same problem when I did insert to Bigquery tables

TypeError: Cannot read property 'statusCode' of undefined
    at Object.parseHttpRespMessage (/home/deploy/streamer/node_modules/gcloud/lib/common/util.js:168:22)
    at Object.handleResp (/home/deploy/streamer/node_modules/gcloud/lib/common/util.js:145:10)
    at /home/deploy/streamer/node_modules/gcloud/lib/common/util.js:447:12
    at Request.onResponse [as _callback] (/home/deploy/streamer/node_modules/gcloud/node_modules/retry-request/index.js:91:9)
    at self.callback (/home/deploy/streamer/node_modules/gcloud/node_modules/request/request.js:198:22)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at Request.onRequestError (/home/deploy/streamer/node_modules/gcloud/node_modules/request/request.js:867:8)
    at emitOne (events.js:77:13)
    at ClientRequest.emit (events.js:169:7)
    at TLSSocket.socketErrorListener (_http_client.js:259:9)
    at emitOne (events.js:77:13)
    at TLSSocket.emit (events.js:169:7)
    at onwriteError (_stream_writable.js:304:10)
    at onwrite (_stream_writable.js:322:5)
    at WritableState.onwrite (_stream_writable.js:89:5)

@stephenplusplus
Copy link
Contributor

Thanks for reporting! A patch will be out soon.

@stephenplusplus stephenplusplus added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. core labels Oct 28, 2015
@stephenplusplus stephenplusplus self-assigned this Oct 28, 2015
@stephenplusplus
Copy link
Contributor

Released as v0.24.1. Thanks again!

sofisl pushed a commit that referenced this issue Nov 11, 2022
Source-Link: googleapis/synthtool@6981da4
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:3563b6b264989c4f5aa31a3682e4df36c95756cfef275d3201508947cbfc511e

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this issue Jan 24, 2023
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 468790263

Source-Link: googleapis/googleapis@873ab45

Source-Link: googleapis/googleapis-gen@cb6f37a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9
sofisl pushed a commit that referenced this issue Jan 25, 2023
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 468790263

Source-Link: googleapis/googleapis@873ab45

Source-Link: googleapis/googleapis-gen@cb6f37a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants