drift-labs / gateway

Self hosted API gateway to easily interact with Drift V2 Protocol
Apache License 2.0
18 stars 11 forks source link

Mainnet/Devnet do not work: from_bytes>SizeMismatch #32

Closed JakkuSakura closed 6 months ago

JakkuSakura commented 7 months ago

When I execute this command, it panicks: from_bytes>SizeMismatch drift-gateway 'https://api.devnet.solana.com' --emulate 777tRS4e6i19zwmF9JKiBe1jWg3kwcc8nUzMVdVFKF8k --dev

jordy25519 commented 7 months ago

likely issue from upstream dep being updated (have pinned now). please try latest v0.1.11

JakkuSakura commented 7 months ago

Hi, I tried v0.1.11 but doesn't work. It seems to be an upstream error https://github.com/drift-labs/protocol-v2/issues/891

jordy25519 commented 7 months ago

which rust version and OS are you using? are there any firewalls etc. I'm unable to reproduce this so far..

JakkuSakura commented 6 months ago

I use MacOS and archlinux. info: The currently active rustc version is rustc 1.78.0-nightly (a84bb95a1 2024-02-13)

JakkuSakura commented 6 months ago

upstream error

enachb commented 4 months ago

I had the same issue and was able to pin point the problem:

Compiling it with Rust 1.76.0 results in a working binary. However the compiled binary with a newer Rust 1.77.2 yields this error.

Please note that this was tested on 2 separate machines having the same outcome.