Aquarius not updating for assets on Polygon (mainnet not testnet)
trentmc opened this issue · 6 comments
Describe the bug
I've seen symptoms in both Ocean Market and ocean.py. Here are three. (FYI publishing on Mumbai works; the problem is Polygon's mainnet.)
- In Ocean Market, I went to an asset that I published on Polygon >1 week ago. I clicked "edit". I made changes. I clicked "submit". It appears that the tx went through ok. But when I refresh the page, the changes are not reflected.
- Using ocean.py as a library, publishing an asset on Polygon returns
None
. To reproduce: go through the flow in this ocean.py#1007 comment. It fails withasset
beingNone
. - Using ocean.py github repo, as a developer.
- First, checkout the the "issue1007-none" branch (Here's the related PR.)
- Then:
export REMOTE_TEST_PRIVATE_KEY1=<your Polygon private key>
- Then:
pytest tests/integration/remote/test_polygon.py
. This is a new test that I created to capture the issue. It will fail withasset
beingNone
.
Note: if I run (2) on Mumbai not Polygon, it works. Same for (3).
Related
There were problems reported recently on Mumbai (Polygon testnet), and I believe @alexcos20 put in a fix today for Mumbai. There's a chance it's a similar issue, and fix, for Polygon.
Same issue as #918
aqua is syncing right now, will take some time to be up2date
I'm still getting failures in the unit tests (symptom 3) reported above.
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='polygon-rpc.com', port=443): Read timed out. (read timeout=10)
you need to wait before your asset is indexed..
My suggestion:
- create a loop that is going to query Aqua for that did.
- if not found, sleep 10 seconds. and then try again.
- if total waiting time > 10 mins -> break the test and mark it failed
Update: symptom (1) as reported in the issue description is now resolved. I'm assuming it's because Aquarius was updated.
Issue (2) and (3) have timeout issues, as reported above. I will move forward on this, with Alex's suggestion or some other workarounds. Will post updates here.
Issue (2) and (3) have timeout issues, as reported above. I will move forward on this, with Alex's suggestion or some other workarounds. Will post updates here.
I'm solving these in an ocean.py specific way. The issue is reported in ocean.py#1007 as "issue (b)". I've got a PR in progress.
Since this issue's (1) is solved, and this issue's (2)(3) are being handled elsewhere, we can close this issue.