Closed wgwz closed 1 year ago
As a temporary workaround I've deployed the following change to the staging indexer:
diff --git a/index_class_issuers.py b/index_class_issuers.py
index 2c635cd..327cf90 100644
--- a/index_class_issuers.py
+++ b/index_class_issuers.py
@@ -10,7 +10,7 @@ logger = logging.getLogger(__name__)
def fetch_class_issuers(height, class_id):
resp = requests.get(
f"{os.environ['REGEN_API']}/regen/ecocredit/v1/classes/{class_id}/issuers",
- headers={"x-cosmos-block-height": str(height)},
+ # headers={"x-cosmos-block-height": str(height)},
)
resp.raise_for_status()
return resp.json()["issuers"]
Maybe we should have a configuration variable to determine whether using an archive node or not.
Hey team! Please add your planning poker estimate with Zenhub @ryanchristo @wgwz @blushi
In staging indexer running against redwood we're seeing this error:
This is to do with the fact that we issue this REST api call with x-cosmos-block-height header set to the block height of the event.
Querying the issuers w/o x-cosmos-block-height returns 200:
Querying w/ x-cosmos-block-height set returns the 500 error:
I think we don't see this issue in production since we're using the archive node (since this is deployed to production and running fine there).