Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Upload doesn't work #35

Open
SRV-YouSoRandom opened this issue Jul 23, 2024 · 3 comments
Open

File Upload doesn't work #35

SRV-YouSoRandom opened this issue Jul 23, 2024 · 3 comments

Comments

@SRV-YouSoRandom
Copy link

When we try to upload a file, the transaction goes through (after a few tries never on the first one) and then the file fails to upload.
Below are screenshots of the same error.

This has been the case for a few weeks now and I was hoping there would be an update. We are building a project that would utilize the same and this issue is just hindering us from progressing.

Logs

File upload
Screenshot (115)

And it keeps updating the same.

Thank you

@MiniFrenchBread
Copy link
Contributor

Hello @Srv8 , from the log, It seems that the storage node you are connected to has not monitored the corresponding file submission event from the chain node. Please check the synchronization status of your storage node and the confirmation_block_count in its configuration.

In current testnet, the average block time is 6s and the default confirmation_block_count is 12 which means it takes about 72 seconds for a storage node to detect a submission event on chain. It's fine to simply decrease the confirmation_block_count to 1 because 0g chain has instant block finality.

@SRV-YouSoRandom
Copy link
Author

SRV-YouSoRandom commented Jul 25, 2024

Ok but after checking everything now this is where we are getting an error. I even tried using other RPC. The file is not being uploaded.
Screenshot (126)

@MiniFrenchBread
Copy link
Contributor

It looks like your chain node wasn't updated in time for the client to read the transaction receipt. We will add a new CLI command to control the timeout for reading receipts from the blockchain, now it's 30s when using CLI.

You can use https://rpc-testnet.0g.ai/ first if your own node is consistently lagging behind in synchronization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants