eosfilestore icon indicating copy to clipboard operation
eosfilestore copied to clipboard

Catch HTTP Error / 504 when pushing transaction

Open Novusphere opened this issue 7 years ago • 3 comments

https://github.com/grigio/eosfilestore/blob/master/src/core.ts#L35

Can fail with a 504 HTTP error and no attempt to retry is done thereby failing the upload all together. The upload/push tx should be tried again if the reason it failed is a non-resource (CPU/NET) reason.

Novusphere avatar Aug 23 '18 23:08 Novusphere

Hi thanks for the report. Currently who does the transactions have to be sure to have enough resources to process them. NET is stable per tx but CPU depends on network congestion. Retry currently isn't supported

grigio avatar Aug 25 '18 22:08 grigio

Even with enough resources (NET/CPU) I have encountered 504 HTTP errors when testing uploading with "large" (~600kb) files, likely because the BP end point to push the transaction thinks I'm spamming, not the EOS network itself.

Novusphere avatar Aug 26 '18 14:08 Novusphere

Currently the biggest file I've tried to upload successfully is 140kb, probably there are some limitations on eos BP apis

grigio avatar Aug 26 '18 14:08 grigio