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

Error: 0: Generic error: Request error #84

Open
forgetso opened this issue Oct 2, 2023 · 1 comment
Open

Error: 0: Generic error: Request error #84

forgetso opened this issue Oct 2, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@forgetso
Copy link

forgetso commented Oct 2, 2023

Hi,

Whenever I run this

subwasm meta wss://rpc.polkadot.io:433

or similar, I get the message

subwasm get --url http://0.0.0.0:9933  
Error: 
   0: Generic error: Request error

Location:
   cli/src/main.rs:55

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

I've tried this with local node running:

b56afcaab32c   substrate-contracts-node:v0.29   "/bin/sh -c 'exec /b…"   5 days ago   Up About an hour   0.0.0.0:9615->9615/tcp, :::9615->9615/tcp, 0.0.0.0:9933->9933/tcp, :::9933->9933/tcp, 0.0.0.0:9944->9944/tcp, :::9944->9944/tcp, 0.0.0.0:30333->30333/tcp, :::30333->30333/tcp   docker-substrate-1

@chevdor
Copy link
Owner

chevdor commented Oct 16, 2023

Hello, thanks for the report. It looks like a bug related to some rework with the args.

Here are a few workarounds for now:

  • Do not pass the url: subwasm meta --chain polkadot is actually simpler :)
  • Get the runtime locally first: subwasm get wss://polkadot-rpc.dwellir.com -o /tmp/runtime.wasm; subwasm meta /tmp/runtime.wasm

I just tested with wss://rpc.polkadot.io:433 and it would not respond, that could also be an issue with that one RPC.

if you search for RPC urls, you may also checkout [subrpc]*(https://github.com/chevdor/subrpc) to abstract away this URL and run:

TMP=/tmp/runtime.was
URL=$(subrpc ep get polkadot | head -n 1)
subwasm get $URL -o $TMP
subwasm meta $TMP

@chevdor chevdor added the bug Something isn't working label Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants