cardano-community / koios-cli Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
needs implementation
Describe the bug
For some endpoint it does not return any valid data because missing decompression of the response.
To Reproduce
$ koios-cli api pool-info -p pool1gxvkc0576e75065p5k0csvwme9y2qrefd5ga66nx0z65xxjt8jk
{
"request_url": "https://api.koios.rest/api/v0/pool_info",
"request_method": "POST",
"status_code": 200,
"status": "200 OK",
"date": "Wed, 24 Jan 2024 07:31:44 GMT",
"content_range": "0-0/*",
"error": {
"message": "invalid character '\\x1f' looking for beginning of value: invalid character '\\x1f' looking for beginning of value"
},
"data": null
}
$ koios-cli api account-info --cached -a stake1ux0636uasyuwfpzhrf8907cp8t6dakvq7lr67ckwfewmu8sq5ryxf
{
"request_url": "",
"request_method": "",
"status_code": 0,
"status": "",
"data": null
}
Expected behavior
Properly parse the compressed response
Desktop (please complete the following information):
Additional context
This looks like related to the cardano-community/koios-go-client#46 bug
It would be nice to have a a healthcheck ping from CLI against a specific instance (eg: -b http://127.0.0.1:8053/api/v0
, that will check and report stats below behind the scenes (currently achieved via bash script grest-poll.sh ):
tip
to check that the last block known to instance is within 600 seconds, use timeout of 2 seconds to establish connection to this endpoint (anything more being too slow to accept connection)<baseURL>/
endpoint) that each path from spec is available at the target instance (current implementation here)-d
), provide a summary of the endpoint results.If all of the above is achievable, this will help us use something like koios-cli healthcheck [-d]
for actual healthcheck from haproxy itself, as an alternative to using bash script we currently use.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.