GithubHelp home page GithubHelp logo

cachet-api's People

Contributors

aydenp avatar dependabot[bot] avatar diogonicoleti avatar eladnava avatar francisfontoura avatar keyndark avatar mestrak avatar timwillsie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cachet-api's Issues

Allow to update a component

I would like to add a function to update a component, Updating a component status by api could be very useful to automate an status page.

Check for required parameters incorrect

Hi.

If boolen "visible: false" when reportIncident this part of code can`t go forward.

// Check for required parameters if (!incident.name || !incident.message || !incident.status || !incident.visible) { return reject(new Error('Please provide the incident name, message, status, and visibility.')); }

Add strictSSL option to request

I'm using Cachet.io with a wildcard certificade from GoDaddy and when I try to use cachet-api this error occurs:

Error to check component status: { Error: unable to verify the first certificate
    at Error (native)
    at TLSSocket.<anonymous> (_tls_wrap.js:1060:38)
    at emitNone (events.js:86:13)
    at TLSSocket.emit (events.js:185:7)
    at TLSSocket._finishInit (_tls_wrap.js:584:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }

According to request documentation:

strictSSL - If true, requires SSL certificates be valid. Note: to use your own certificate authority, you need to specify an agent that was created with that CA as an option.

Is possible to add this option to cachet-api with value false?

Add requests ca option to specify certificates

Hello there,
We're using Cachet internally, and our internal domain has a self signed certificate. When I use the package (trying to publish a metric to Cachet) I get the following error:

Error: self signed certificate in certificate chain

To fix it we need to be able to specify the internally signed cert using the ca option in requests like this:
https://stackoverflow.com/questions/22258093/node-js-using-https-request-with-an-internal-ca

Could this option be added to provide a ca cert to the cachet-api package?

Thanks!

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.