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

Mech client hangs with ConfirmationType.OFF_CHAIN #42

Open
evangriffiths opened this issue Apr 18, 2024 · 1 comment
Open

Mech client hangs with ConfirmationType.OFF_CHAIN #42

evangriffiths opened this issue Apr 18, 2024 · 1 comment

Comments

@evangriffiths
Copy link

evangriffiths commented Apr 18, 2024

The interact method does not return with confirmation_type == ConfirmationType.OFF_CHAIN

In stdout I see

Created on-chain request with ID 56439741347897565096390923836077361339766652372962787639228859560995999907820
Waiting for Mech response...

but in the mech web UI here I can see that the request matching that ID has a corresponding response (i.e. an. IPFS link)

To reproduce:

from mech_client.interact import ConfirmationType, interact

private_key_path = "..."

def _interact(confirmation_type: ConfirmationType):
    interact(
        prompt="Is the sky blue?",
        # Taken from https://github.com/valory-xyz/mech?tab=readme-ov-file#examples-of-deployed-mechs
        agent_id=6,
        private_key_path=private_key_path,
        tool="prediction-offline",
        confirmation_type=confirmation_type,
    )


_interact(ConfirmationType.WAIT_FOR_BOTH)  # works fine
_interact(ConfirmationType.OFF_CHAIN)  # hangs
@gauravlochab
Copy link
Collaborator

@0xArdi i think the node uri-acn.staging.autonolas.tech:9005 is not sending the response here response = await connection.receive()

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