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 — Downloading from Cloud Storage - Cannot call method 'write' of null · Issue #789 · googleapis/google-cloud-node

Downloading from Cloud Storage - Cannot call method 'write' of null #789

New issue
Copy link
New issue
Copy link
Closed
Closed
Downloading from Cloud Storage - Cannot call method 'write' of null#789
Copy link
Assignees
kieranhackshall
Labels
api: storageIssues related to the Cloud Storage API.

Description

@kieranhackshall
kieranhackshall
opened on Aug 10, 2015
Issue body actions

I have a node instance that creates child processes, in these child processes there is a requirement to download a file from Cloud storage. When running more than one I am seeing the following error:

/opt/testing/node_modules/modesl/node_modules/eventemitter2/lib/eventemitter2.js:290
throw arguments[1]; // Unhandled 'error' event
^
TypeError: Cannot call method 'write' of null
at onCreated (/opt/testing/src/outbound/lib/Child.js:1153:62)
at DestroyableTransform. (/opt/testing/src/outbound/lib/Child.js:1463:17)
at DestroyableTransform.emit (events.js:117:20)
at /opt/testing/node_modules/gcloud/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js
:965:16
at process._tickCallback (node.js:448:13)

To download I have tried both examples shown in the gcloud-node repository:

// Download a file from your bucket.
bucket.file('giraffe.jpg').download({
destination: '/photos/zoo/giraffe.jpg'
}, function(err) {});

// Streams are also supported for reading and writing files.
var localReadStream = fs.createReadStream('/photos/zoo/zebra.jpg');
var remoteWriteStream = bucket.file('zebra.jpg').createWriteStream();
localReadStream.pipe(remoteWriteStream);

Has anyone else seen this issue, is it a bug?

Activity

Next
  1. callmehiphop commented on Aug 10, 2015

    @callmehiphop
    callmehiphop
    on Aug 10, 2015
    Contributor
    More actions

    Thanks for reporting this issue! I tested this locally but I wasn't able to trigger the same error, do you think you could provide us with a test case to recreate the issue?

  2. kieranhackshall commented on Aug 10, 2015

    @kieranhackshall
    kieranhackshall
    on Aug 10, 2015
    Author
    More actions

    Thanks for replying.

    I wrote a simpler test case and discovered the bug was occurring elsewhere in my code, the problem does not relate to gcloud-node, so am closing this issue.

  3. kieranhackshall
    closed this as completedon Aug 10, 2015
  4. hu9o commented on Jan 26, 2017

    @hu9o
    hu9o
    on Jan 26, 2017
    More actions

    I am curious as to why you were getting this error, I am completely at loss...
    I barely changed the sample code and encounter it seemingly randomly (albeit frequently).

  5. stephenplusplus commented on Jan 26, 2017

    @stephenplusplus
    stephenplusplus
    on Jan 26, 2017
    Contributor
    More actions

    @hu9o could you share a reproduction case / show your code? I'm happy to take a look.

  6. stephenplusplus
    added
    api: storageIssues related to the Cloud Storage API.
    on Jan 26, 2017
  7. hu9o commented on Jan 27, 2017

    @hu9o
    hu9o
    on Jan 27, 2017
    More actions

    Sorry, this is embarrassing: my error is actually about the speech API... I should have paid more attention.

  8. JustinBeckwith
    assigned
    kieranhackshall
    on Feb 1, 2021
  9. sofisl
    added 2 commits that reference this issue on Nov 10, 2022

    build!: update library to use Node 12 (#789)

    92b5ee3

    chore(main): release 7.0.0 (#788)

    40b937e
  10. sofisl
    added a commit that references this issue on Nov 17, 2022

    chore(deps): update dependency uuid to v9 (#789)

    7b240c8
  11. miguelvelezsa
    added a commit that references this issue on Jul 23, 2025

    feat: export GRPC (#789)

    657673e
  12. GautamSharda
    added a commit that references this issue on Jan 20, 2026

    chore: remove api-logging team (#789)

    565718c
  13. sofisl
    added 2 commits that reference this issue on Jan 27, 2026

    docs(node): support "stable"/"preview" release level (#1312) (#789)

    9818a05

    docs(node): support "stable"/"preview" release level (#1312) (#789)

    e1b08bb
  14. 2 remaining items

  15. sofisl
    added 2 commits that reference this issue on Jan 28, 2026

    docs(node): support "stable"/"preview" release level (#1312) (#789)

    88e402d

    docs(node): support "stable"/"preview" release level (#1312) (#789)

    fac7348
  16. miguelvelezsa
    added a commit that references this issue on Jan 28, 2026

    chore: update CODEOWNERS config (#789)

    9576988
  17. sofisl
    added 3 commits that reference this issue on Jan 29, 2026

    docs(node): support "stable"/"preview" release level (#1312) (#789)

    841385c

    docs(node): support "stable"/"preview" release level (#1312) (#789)

    5080e56

    chore: update CODEOWNERS config (#789)

    cbe990e
  18. GautamSharda
    added a commit that references this issue on Feb 5, 2026

    chore: remove api-logging team (#789)

    1f69180
  19. sofisl
    added a commit that references this issue on Feb 17, 2026

    chore: update CODEOWNERS config (#789)

    9bb0ccd
  20. GautamSharda
    added a commit that references this issue on Feb 23, 2026

    chore: remove api-logging team (#789)

    ec1518f
  21. sofisl
    added a commit that references this issue on Feb 25, 2026

    build: add Node 12 remove Node 11 (#789)

    35cf1d8
  22. GautamSharda
    added a commit that references this issue on Feb 26, 2026

    chore: remove api-logging team (#789)

    3bd90db
  23. sofisl
    added a commit that references this issue on Feb 26, 2026

    fix: transaction runner should not timeout before first attempt (#789)

    e72c8e0
  24. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    fix: remove eslint, update gax, fix generated protos, run the generat…

    1381a14
  25. sofisl
    added a commit that references this issue on Mar 5, 2026

    fix: generator release config (#789)

    b4a9502
  26. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    build: add Node 12 remove Node 11 (googleapis#789)

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

Metadata

Metadata

Assignees

  • @kieranhackshall
    kieranhackshall

Labels

api: storageIssues related to the Cloud Storage API.

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.