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

.call() function not working so I 'm not able to receive any data #1891

Open
saniam-dxb opened this issue Dec 8, 2023 · 0 comments
Open

Comments

@saniam-dxb
Copy link

My contract deploys, and transactions are working. But when I try to retrieve data with a view function, I get an error saying it's not synced. My project depends on retrieving data, please help me out!

print(funcs.showPDetails().call()) #Error causing line
#funcs is declared as contractname.functions & works with transactions
#showPDetails() is a view function in the contract with just a return line
Error (end of error messages): web3.exceptions.BadFunctionCallOutput: Could not transact with/call contract function, is contract deployed correctly and chain synced?

Browsed the internet, a few people did have this issue but most were unanswered. One suggested solution to add time.sleep(50) did not make a difference for me.

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

1 participant