Giter VIP home page Giter VIP logo

postmanlabs / observability-cli Goto Github PK

View Code? Open in Web Editor NEW
349.0 7.0 28.0 1.08 MB

The Akita CLI helps you make sense of API traffic. Passively watch API traffic with apidump. Model API behavior with apispec. Compare API behavior with apidiff.

Home Page: https://docs.akita.software/docs

License: Apache License 2.0

Go 99.95% Makefile 0.05%
api openapi3 api-specification openapi-specification gopacket

observability-cli's Issues

x509: certificate signed by unknown authority

Looks like this is coming from inside the container, could be our corporate proxy security firewall, Idk.

docker run --rm --network host \
  -e AKITA_API_KEY_ID=apk_5...F \
  -e AKITA_API_KEY_SECRET=1...3 \
  akitasoftware/cli:latest apidump \
  --project RTTA

Unable to find image 'akitasoftware/cli:latest' locally
latest: Pulling from akitasoftware/cli
72cfd02ff4d0: Pull complete
4ac5a229ebba: Pull complete
829d9da225a6: Pull complete
Digest: sha256:7e20d3b81b28a35669e2eb25cef0b9275fc8e746dbabe30ecee967e9574ad6d2
Status: Downloaded newer image for akitasoftware/cli:latest
[INFO] Akita Agent 0.23.0
[ERROR]  request failed [error Get "https://api.akita.software/v1/user": x509: certificate signed by unknown authority method GET url https://api.akita.software/v1/user]
[INFO] Telemetry using temporary ID; /v1/user API call failed: Get "https://api.akita.software/v1/user": x509: certificate signed by unknown authority
[INFO] This error may indicate a problem communicating with the Akita servers,
[INFO] but the agent will still attempt to send telemetry Akita support.
[ERROR]  request failed [error Get "https://api.akita.software/v1/services": x509: certificate signed by unknown authority method GET url https://api.akita.software/v1/services]
[ERROR] failed to get list of services associated with the account: Get "https://api.akita.software/v1/services": x509: certificate signed by unknown authority

FYI: Instalation through Homebrew is failing with ARM64

Hi folks!
I've tried to install Akita CLI though Homebrew no a Macbook with M1 processor, and I got this error:

brew tap akitasoftware/akita && brew install akita-cli
==> Installing akita-cli from akitasoftware/akita
==> Downloading https://releases.akita.software/cli/0.17.7/akita_0.17.7_darwin_arm64.zip
Already downloaded: /Users/gkbonetti/Library/Caches/Homebrew/downloads/c63d51f2bf2c8c82a40fd47b05666ac5c1cfd24c64b9cf642f3d4d8b30a237ea--akita_0.17.7_darwin_arm64.zip
Error: SHA256 mismatch
Expected: 256652350362e692a5e874abedf9a2c933303176e4e4f04668f2c0b62b3976e8
  Actual: 7df38396aa89250408186d80b2e01f3d7aef1063d678b93e2ffd44f8a25a84b9
    File: /Users/gkbonetti/Library/Caches/Homebrew/downloads/c63d51f2bf2c8c82a40fd47b05666ac5c1cfd24c64b9cf642f3d4d8b30a237ea--akita_0.17.7_darwin_arm64.zip
To retry an incomplete download, remove the file above.

I've tried deleting the downloaded file and trying again a few times but the result was always the same.

Since I couldn't install it through Homebrew, I've installed it from source (following the Readme) and it seems to be working.

"apidump --out" creates empty folder / no har file?

I'm trying to use akita apidump with --out to a local folder. The out folder gets created but is empty. I've tried both on MacOS and Linux, both built from source and with the official binary (mentioned in the docs) and got the same result. Am I doing anything wrong?

Results received:
Empty out folder, no .har file.

Expected:
.har file gets created in the out dir.

Example:

Before: out dir doesn't exist:

$ ls -a
.  .. 

running as user root:

$ akita apidump -c 'curl -I -L https://api.github.com/users/torvalds/events/public' -u root --out ./dumpdir
[INFO] Running learn mode on interfaces lo, ens18, cni-podman0
[WARNING] --filter flag is not set, this means that:
[WARNING]   - all network traffic is treated as your API traffic
[WARNING]   - outbound witness collection is disabled
[INFO] Running subcommand...


======= _AKITA_SUBCOMMAND_ =======
======= _AKITA_SUBCOMMAND_ =======
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0  299k    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
HTTP/2 200
server: GitHub.com
<...>

======= _AKITA_SUBCOMMAND_ =======
======= _AKITA_SUBCOMMAND_ =======
[INFO] Subcommand finished successfully, stopping trace collection...
[INFO] Success! ๐ŸŽ‰

After: out dir got created but is empty:

$ ls -a
.  ..  dumpdir
ls -a dumpdir/
.  ..

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.