Open os11k opened 2 years ago
This all started when I consulted os11k about a problem with my pool not showing up on Daedalus.
Here's some additional information. I also know that adding a slash to the end of the URL of the target API changes the timeline of the output results. This was originally due to a typo on my part and not a regular call, but I thought I'd write it down if it's relevant to this issue.
That is, the following will be displayed starting with the newest error (in this case, we get 10 errors for December 21st)
# API There is a slash at the end of the
curl -X GET https://smash.cardano-mainnet.iohk.io/api/v1/errors/383dd348581c3c16a981de1178c42f1d3134280f66bed7518b772ffd/
However, the following will be displayed starting with the oldest error with the current default behavior (i.e., you will only get 10 errors for December 16th)
# API with no trailing slash (canonical call)
curl -X GET https://smash.cardano-mainnet.iohk.io/api/v1/errors/383dd348581c3c16a981de1178c42f1d3134280f66bed7518b772ffd
Hopefully this post will have a positive impact on the problem.
Also, this API has a fromDate option.
If this option is set to fromDate=17.12.2021
, you will not get the error for December 21,
but if fromDate=18.12.2021
, you will get the error for December 21.
This will get you an error on December 21.
curl -X GET https://smash.cardano-mainnet.iohk.io/api/v1/errors/383dd348581c3c16a981de1178c42f1d3134280f66bed7518b772ffd?fromDate=18.12.2021
However, it cannot be obtained in the following
curl -X GET https://smash.cardano-mainnet.iohk.io/api/v1/errors/383dd348581c3c16a981de1178c42f1d3134280f66bed7518b772ffd?fromDate=17.12.2021
As a user, I would like to see any errors after at least the specified date and time.
So there is a pool in mainnet(383dd348581c3c16a981de1178c42f1d3134280f66bed7518b772ffd) which had 10 errors in 16th of December and 10 errors in 21st of December.
So when I run
curl -X GET https://smash.cardano-mainnet.iohk.io/api/v1/errors/383dd348581c3c16a981de1178c42f1d3134280f66bed7518b772ffd
I would expect to see latest errors, but in reality it just shows errors from 16th of Decemeber:
But if we will put
fromDate=20.12.2021
it will show latest errors from 21st of December:curl -X GET https://smash.cardano-mainnet.iohk.io/api/v1/errors/383dd348581c3c16a981de1178c42f1d3134280f66bed7518b772ffd?fromDate=20.12.2021
Seems like a bug for me, I would expect to receive most recent errors when I do request
/api/v1/errors/poolid