Skip to content

running sample errors #192

@kevkevinpal

Description

@kevkevinpal

I tried running the sample but ran into a few issues


1). When trying to start alice with her configuration I had a SSL cert issue but it seemed this website's certificate was expired https://oracle.p2pderivatives.io/

I resolved this by running https://github.com/p2pderivatives/p2pderivatives-oracle locally


2). After starting up alice and bob I ran this command to try and send offer offercontract 024b5bc3c328d92fdf30421093b214b4099b78617e9195afd2106f444b670c731d@127.0.0.1:9000 ./examples/contracts/numerical_contract_input.json

I ran into this error

> offercontract 024b5bc3c328d92fdf30421093b214b4099b78617e9195afd2106f444b670c731d@127.0.0.1:9000 ./examples/contracts/numerical_contract_input.json
Checking for messages
connecting to peer 024b5bc3c328d92fdf30421093b214b4099b78617e9195afd2106f444b670c731d
ERROR: Peer disconnected before we finished the handshake
thread 'tokio-runtime-worker' panicked at sample/src/cli.rs:203:38:
Error sending offer: InvalidParameters("Unknown oracle public key")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at sample/src/cli.rs:216:22:
called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(27), ...)

I then tried using the connectpeer command but then got this error

> connectpeer 024b5bc3c328d92fdf30421093b214b4099b78617e9195afd2106f444b670c731d@localhost:9000
Checking for messages
ERROR: Peer disconnected before we finished the handshake

Now I am stuck at this point any guidance would be helpful, I can also open a PR for any changes I need to make to run the sample successfully for anyone in the future

Metadata

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