rareaf icon indicating copy to clipboard operation
rareaf copied to clipboard

Fixed intermittent errors at fetch time

Open pblanco-dekalabs opened this issue 2 years ago • 10 comments

We've detected intermittent errors through our tests, when consuming the testnet.

Seems that somehow the indexer gets overflown by too many parallel requests, and throws 503 errors at random. To solve this, an await was added inside the loop.

pblanco-dekalabs avatar Feb 10 '22 11:02 pblanco-dekalabs

Thanks! This would mean getting the listings is slower, since each would have to wait for the last to finish before it gets fetched.

Maybe some secondary loop that packs up promises 5 or 10 at a time depending?

Also, I've not had time recently to get to the frond end changes for this yet but the backend contracts are working for https://github.com/barnjamin/rareaf/tree/app-addr. They're vastly simplified but require Teal 6 (just merged to go-algorand/master but not on mainnet yet) since we need rekey inside the application.

barnjamin avatar Feb 10 '22 11:02 barnjamin

That's a good idea! I'll look to pack requests to avoid slowness.

pblanco-dekalabs avatar Feb 10 '22 11:02 pblanco-dekalabs

are you still going live with this barnjamin? ive reworked your UI into chakra and im going to be deploying a copy of your teal scripts.. and eventually mainnet.. any thing i should know on the teal side?

scottbolasevich avatar Mar 14 '22 14:03 scottbolasevich

There is another branch that I've been working on to rework the logic, i'd wait until that is done to even consider going to mainnet

barnjamin avatar Mar 14 '22 15:03 barnjamin

sweet which branch is that ? so i can watch it.. and i assume that's around the teal contracts specifically?

scottbolasevich avatar Mar 14 '22 15:03 scottbolasevich

https://github.com/barnjamin/rareaf/tree/app-addr havent had time to finish it up

barnjamin avatar Mar 14 '22 15:03 barnjamin

your a rock star either way in my book.. super awesome job!!

scottbolasevich avatar Mar 14 '22 15:03 scottbolasevich

cheer m8 hope your doing well and still thinking of finishing those contracts.... if not I'd love to chat with you in discord or somewhere get an idea what you thought was left and i might just finish up your contracts myself depending.. let me know

scottbolasevich avatar Apr 07 '22 21:04 scottbolasevich

just circiling back barnjamin i'd love to chat with you about that smart contract is there any way i can contact you directly.. im local too btw next state over!!! like 2hrs way close im into all the same stuff i seen you updated the wallet im using that in ALL my dApps lets chat!!!

scottbolasevich avatar Jul 21 '22 16:07 scottbolasevich

hey @scottbolasevich still haven't found time to work on this 😬 but feel free to pop into the Algorand Discord with any questions, im barnji on there.

barnjamin avatar Jul 21 '22 16:07 barnjamin