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 — bug on create cloud · Issue #344 · googleapis/google-cloud-node

bug on create cloud #344

New issue
Copy link
New issue
Copy link
Closed
Closed
bug on create cloud#344
Copy link
Assignees
stephenplusplus
Labels
🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Milestone
Storage Stable

Description

@leibale
leibale
opened on Jan 13, 2015
Issue body actions
var cloud = require('gcloud').storage({
    projectId: config.get('google:cloud:id'),
    keyFilename: 'path/to/google/key.json'
});

and node throw this error:

path.js:360
        throw new TypeError('Arguments to path.join must be strings');
              ^
TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at Object.exports.join (path.js:358:36)
    at Object.<anonymous> (path/to/project/folder/node_modules/gcloud/node_modules/configstore/node_modules/xdg-basedir/index.js:6:42)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)

in version 0.11.0 it's working

thanks

Activity

Next
  1. ryanseys commented on Jan 13, 2015

    @ryanseys
    ryanseys
    on Jan 13, 2015
    Contributor
    More actions

    Hi, thanks for the report. What is the typeof config.get('google:cloud:id')? Is it not a string?

  2. ryanseys commented on Jan 13, 2015

    @ryanseys
    ryanseys
    on Jan 13, 2015
    Contributor
    More actions

    Or how are you passing in the path to your key? The actual code snippet instead of a fake path/to/google/key.json might help us track down the issue.

  3. stephenplusplus commented on Jan 13, 2015

    @stephenplusplus
    stephenplusplus
    on Jan 13, 2015
    Contributor
    More actions

    It looks like a dependency (user-home) of a dependency (xdg-basedir) of a dependency (configstore) of our library can't figure out your home directory: https://github.com/sindresorhus/user-home/blob/master/index.js

    Is there any reason your system wouldn't be able to satisfy the search for a home directory here? https://github.com/sindresorhus/user-home/blob/master/index.js

    If nothing else, it looks like setting the environment variable "HOME" with a path to your home directory will give Configstore a place to read and write files.

  4. sindresorhus commented on Jan 13, 2015

    @sindresorhus
    sindresorhus
    on Jan 13, 2015
    More actions

    Configstore should handle that gracefully though: https://github.com/yeoman/configstore/blob/b82690fc401318ad18dcd7d151a0003a4898a314/index.js#L15

  5. stephenplusplus commented on Jan 13, 2015

    @stephenplusplus
    stephenplusplus
    on Jan 13, 2015
    Contributor
    More actions

    I think it's crashing before it gets to that point. https://github.com/sindresorhus/user-home/blob/master/index.js#L13 -- that must be returning undefined to https://github.com/sindresorhus/xdg-basedir/blob/master/index.js#L6

  6. sindresorhus commented on Jan 13, 2015

    @sindresorhus
    sindresorhus
    on Jan 13, 2015
    More actions

    Fixed in sindresorhus/xdg-basedir@ec77240

  7. sindresorhus commented on Jan 13, 2015

    @sindresorhus
    sindresorhus
    on Jan 13, 2015
    More actions

    It's really annoying we don't have a reliable way to get the home directory in Node... (libuv/libuv#11)

  8. leibale
    changed the title [-]googlebug on create cloud[/-] [+]bug on create cloud[/+] on Jan 13, 2015
  9. stephenplusplus commented on Jan 13, 2015

    @stephenplusplus
    stephenplusplus
    on Jan 13, 2015
    Contributor
    More actions

    @sindresorhus thanks!

    @leibale if you are still experiencing issues with gcloud, please re-open.

  10. stephenplusplus
    closed this as completedon Jan 13, 2015
  11. jgeewax
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    api: storageIssues related to the Cloud Storage API.
    on Feb 2, 2015
  12. jgeewax
    added this to the Storage Stable milestone on Feb 2, 2015
  13. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 6, 2020
  14. 38 remaining items

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

    refactor(ts): enable noImplicitAny on test/transaction.ts (#344)

    627b962
  16. GautamSharda
    added a commit that references this issue on Feb 5, 2026

    update to .nycrc with --all enabled (#344)

    2edc308
  17. sofisl
    added a commit that references this issue on Feb 17, 2026

    refactor(ts): enable noImplicitAny on test/transaction.ts (#344)

    9459e2b
  18. GautamSharda
    added a commit that references this issue on Feb 23, 2026

    update to .nycrc with --all enabled (#344)

    12660d5
  19. sofisl
    added a commit that references this issue on Feb 25, 2026

    fix(test): fix broken samples-test script (#344)

    049d6b1
  20. GautamSharda
    added a commit that references this issue on Feb 26, 2026

    update to .nycrc with --all enabled (#344)

    8f663fa
  21. codyoss
    added a commit that references this issue on Mar 5, 2026

    chore: fix `npm` for Node v18 samples tests (#344)

    8efbf5d
  22. sofisl
    added 2 commits that reference this issue on Mar 5, 2026

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

    fa9a454

    build: add generated-files bot config (#344)

    fec05ac
  23. GautamSharda
    added a commit that references this issue on Mar 12, 2026

    fix: inherit requestModule from parent (#344)

    723e9f0
  24. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    fix(test): fix broken samples-test script (googleapis#344)

    5c09034
  25. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    chore: update issue templates (#344)

    4ae2761

    chore: update issue templates (#344)

    9fbc4ea
  26. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    chore: update issue templates (#344)

    2702c29
  27. thiyaguk09
    added a commit that references this issue on May 5, 2026

    chore: update issue templates (googleapis#344)

    d8b68a1
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.api: storageIssues related to the Cloud Storage 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

    • Storage 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.