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

query node with curl replied curl: (1) Received HTTP/0.9 when not allowed #2212

Open
NoFeeding opened this issue Jul 20, 2023 · 2 comments
Open

Comments

@NoFeeding
Copy link

Hi I am new to this KASPA network and just setup a mainnet node.

But while I was trying query via this command
curl --location --request GET 'http://127.0.0.1:16110/info/virtual-chain-blue-score'
when I am in local server or remotely with related IP address it all comes back with
curl: (1) Received HTTP/0.9 when not allowed

After I tried with --http0.9 parameter added it returned with
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: " to save to a file.
So I am wondering that if I missed out any essential setup besides setting listen=0.0.0.0:16111 and rpclisten=0.0.0.0:16110
Any more steps I need to take to curl some info from my node?

@MindPhaser34
Copy link

yep, same problem. Started with:
kaspad --yes --nologfiles --disable-upnp --utxoindex --rpclisten=0.0.0.0:16110 --rpclisten-borsh=0.0.0.0:17110 --rpclisten-json=0.0.0.0:18110 --externalip=xxx.xxx.xxx.xxx

@MindPhaser34
Copy link

Resolved with kaspa-api component in docker-compose:

  kaspa_rest_server:
    image: supertypo/kaspa-rest-server:latest
    container_name: kaspa-api
    hostname: kaspa-api
    restart: unless-stopped
    environment:
      KASPAD_HOST_1: kaspa-rusty-node:16110
      VSPC_REQUEST: "false"
    ports:
      - "8000:8000/tcp"

then you should do requests to kaspa-api.

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

3 participants
@MindPhaser34 @NoFeeding and others