Giter VIP home page Giter VIP logo

Comments (8)

taylorbrooks avatar taylorbrooks commented on July 30, 2024

Are you setting up your API key in the ENV['CLOSEIO_API_KEY'] variable?

from closeio.

aknicol avatar aknicol commented on July 30, 2024

Yes. I'm on Rails 4.3, and I've added ENV['CLOSEIO_API_KEY'] in secrets.yml. I've also tried it on Heroku, where I've set the env variable using heroku config:set. In both cases I get the same error. Any help would be appreciated.

from closeio.

taylorbrooks avatar taylorbrooks commented on July 30, 2024

Hi @aknicol, I just merged in a PR that allows you to configure the gem with a closeio.yml file. Would you try that and see if it works?

Info is in the README.

from closeio.

aknicol avatar aknicol commented on July 30, 2024

Thanks for that. I've updated the gem and created config/initializers/closeio.yml with the following contents:

api_key: '86241a9a99bcaff237079c837ea665456dfff883d3290b264b55b86b'

Is this correct? Because I still get the same error.

from closeio.

taylorbrooks avatar taylorbrooks commented on July 30, 2024

Yes, that's how it should be configured.

But you probably want to delete your api_key now as it's been exposed.

from closeio.

aknicol avatar aknicol commented on July 30, 2024

Yeah, I didn't use the actual key.

No idea then why I'm getting the error?

from closeio.

taylorbrooks avatar taylorbrooks commented on July 30, 2024

I just pushed a 1.0.0 version where you can call Closeio.configure('api_key').

Try that and see if it fixes your issue. You may want to put that in an initializer.

from closeio.

aknicol avatar aknicol commented on July 30, 2024

That works. Thanks!

from closeio.

Related Issues (20)

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.