Skip to content

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

Open
@saniam-dxb

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions