Git Product home page Git Product logo

Comments (7)

typerandom avatar typerandom commented on June 26, 2024

Hi Radley,

Thanks for reporting this.

I have looked into it and I don't see any issue with the first thing that you mentioned. Binding there seems fine. But the second one was clearly wrong and the expanded home directory wasn't even used. So even though we expanded it, we were still used the original path.

I have fixed this and will soon create a PR for review/release.

A quick question, what OS are you using?

from stormpath-node-config.

radleymith avatar radleymith commented on June 26, 2024

Im using OSX El Capitan 10.11.2

I also pulled down the new file and tried using it. I'm still getting an error that API key ID and secret is required. I have put some logs in checking the state of the original file path and the expanded file path. Here are their results:

original: ~/.stormpath/stormpath.json
expanded: /Users/MY_USERNAME/.stormpath/stormpath.json
original: ~/.stormpath/stormpath.yml
expanded: /Users/MY_USERNAME/.stormpath/stormpath.yml
original: /Users/MY_USERNAME/workspace/MY_APP/stormpath.json
expanded: /Users/MY_USERNAME/workspace/MY_APP/stormpath.json
original: /Users/MY_USERNAME/workspace/MY_APP/stormpath.yml 
expanded: /Users/MY_USERNAME/workspace/MY_APP/stormpath.yml

currently my YAML file resides here /Users/MY_USERNAME/workspace/MY_APP/stormpath.yml. (which would show that the final instance of the expandedDir being correct.)

Could multiple trips through the process be affecting the result?
I get that it's going through the various steps in checking where the file could be located, I'm just wondering.

side note: I've tried saving it as both .yaml and .yml file, neither are working

from stormpath-node-config.

radleymith avatar radleymith commented on June 26, 2024

I am noticing that the strategies are called with a config parameter, but this seems to be just a default object. Like when ValidateClientConfigStrategy is called, it has a fleshed out object, but the values like client.apiKey are null

from stormpath-node-config.

radleymith avatar radleymith commented on June 26, 2024

Nvm, it works thanks!

from stormpath-node-config.

typerandom avatar typerandom commented on June 26, 2024

Did you get it to work? Was it because of permissions to the file?

from stormpath-node-config.

radleymith avatar radleymith commented on June 26, 2024

It's working. I wrote the yaml without spaces between the colon and the value so it was getting parsed incorrectly. Really sorry about this. :\

from stormpath-node-config.

typerandom avatar typerandom commented on June 26, 2024

No problem! Good to hear that you solved it! :) Closing this issue now.

from stormpath-node-config.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.