risc0-foundry-template icon indicating copy to clipboard operation
risc0-foundry-template copied to clipboard

Deployment testing: `HTTP error from reqwest`

Open nuke-web3 opened this issue 1 year ago • 1 comments

Following the deployment guide I can get to:

cargo run --bin publisher --     --chain-id=31337     --rpc-url="http://127.0.0.1:8545"     --contract=${EVEN_NUMBER_ADDRESS:?}     --input=12345678

...

Error: HTTP error from reqwest

Caused by:
    0: builder error: relative URL without a base
    1: relative URL without a base

Although the error isn't helpful... I did end up tracing to find the culprit:

https://github.com/risc0/risc0-foundry-template/blob/9658baac8d7e265aa22010d3310c72df3fc08619/apps/src/lib.rs#L84

Seems like there is a problem in https://github.com/risc0/risc0/blob/a6b884aa41dec6ae345013b7292e868d6e7685da/bonsai/sdk/src/alpha.rs#L421-L430 ?

Note: I have not set BONSAI evn vars, but don't think that would lead to this error :crossed_fingers:

nuke-web3 avatar May 09 '24 21:05 nuke-web3

It's talking about a url so this begs the question. Is it that --rpc-url="http://127.0.0.1:8545" has " " unlike rest of vars? Wild guess!

Ibby-debug avatar May 13 '24 13:05 Ibby-debug

Closing this as fix because we removed the code that it relates to. Without an API key, it will now attempt to prove locally.

nategraf avatar May 30 '24 16:05 nategraf