jsdelivr / globalping-cli

A simple CLI tool to run networking commands remotely from hundreds of globally distributed servers
Mozilla Public License 2.0
129 stars 14 forks source link

HTTP all not working #65

Closed jimaek closed 1 year ago

jimaek commented 1 year ago

We deployed the latest API changes. I have now pulled the CLI master but some things are missing?

Am I doing something wrong?

MartinKolarik commented 1 year ago

Both work for me on master.

jimaek commented 1 year ago
root@ansible2:~/globalping-cli# git pull
Already up to date.
root@ansible2:~/globalping-cli# go run main.go http https://www.jsdelivr.com --method GET --full
Error: unknown flag: --full

Does Golang have some kind of cache I need to purge?

didil commented 1 year ago

@jimaek are you on the master branch ? could you please share the output of git log ? There shouldn't be any cache to purge in this case

jimaek commented 1 year ago
# git branch
  improve-http-output
  install-probe
* master
  output-jumps
commit 0cf5972c05f14e19fa3f8891c0a99d93f194d3db (HEAD -> master, origin/master, origin/HEAD)
Merge: e081f12 74a230c
Author: Dmitriy Akulov <dakulovgr@gmail.com>
Date:   Thu Apr 6 14:35:26 2023 +0100

    Merge pull request #34 from didil/http-fixes

    HTTP fixes/refactor

commit 74a230c83644d5ced1477546a2149621bda67e56 (origin/http-fixes)
Author: didil <1284255+didil@users.noreply.github.com>
Date:   Thu Apr 6 14:09:34 2023 +0100

    http fixes/refactor

commit e081f12a4a93e667cb37fdbd91c5fcb30991d987
Author: Dmitriy Akulov <dakulovgr@gmail.com>
Date:   Tue Mar 21 14:06:34 2023 +0100

    cdn icon
didil commented 1 year ago

@jimaek it looks like a git issue ? All the commits since April 6th seem to be missing

jimaek commented 1 year ago

rm -rf and cloning again fixed it. The only remaining issue is the duplicating output which literally happens on every single HTTP GET request now. HEAD and other tests dont have this issue.