GithubHelp home page GithubHelp logo

cryptosense / api-client Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 3.0 156 KB

Cryptosense Analyzer API client

License: BSD 2-Clause "Simplified" License

OCaml 96.05% Shell 2.61% Dockerfile 1.34%
ocaml

api-client's People

Contributors

bbc2 avatar exenon avatar khadijafen9 avatar nemeras avatar sbq-clements avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

api-client's Issues

CURLE_SSL_PEER_CERTIFICATE even with --no-check-certificate

When I use the latest cs-api client (2.0.0) with a self-signed certificate, I get the following output:

> cs-api upload-trace --no-check-certificate --api-base-url https://centos.analyzer.local:8444 ...
HTTP error: Unknown error: CURLE_SSL_PEER_CERTIFICATE

The progress bar is gone

With version 2.0.0, there is no progress bar when uploading a trace. What about restoring it?

Errors not reported appropriately

In all the following examples, the exit code should be nonzero (e.g. 1) and an error message should say what the problem is.

Example 1: Project ID not found

$ cs-api upload-trace --project-id 0 ...
Uploaded trace

Exit code: 0

Example 2: Project name not found

$ cs-api upload-trace --project-name nx ...
Project name not found: nx

Exit code: 0 (the error message is good but not the exit code)

Example 3: Trace name already exists

$ cs-api upload-trace --trace-name foo ...
Uploaded trace

Exit code: 0

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.