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: JSON-RPC error: transport error: unexpected HTTP code: 404 #2305

Closed
krishnadude98 opened this issue Jul 26, 2023 · 6 comments
Closed

Comments

@krishnadude98
Copy link

ord not able to connect with bitcoind even after my bitcoind is fully signed
blockchain-cli getblockchaininfo

  "chain": "main",
  "blocks": 800303,
  "headers": 800303,
  "bestblockhash": "00000000000000000001f06c2783caed9a017c70aeccebcc7eac9e015396bcf9",
  "difficulty": 53911173001054.59,
  "time": 1690349226,
  "mediantime": 1690345530,
  "verificationprogress": 0.9999960449246393,
  "initialblockdownload": false,
  "chainwork": "000000000000000000000000000000000000000050026399b5b7f78996a11610",
  "size_on_disk": 565817502639,
  "pruned": false,
  "warnings": "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications"
}```

still while trying to run 
ord --cookie-file /home/ubuntu/.bitcoin/.cookie --bitcoin-rpc-user hari --bitcoin-rpc-pass hari@123 server --http-port 8332

```error: JSON-RPC error: transport error: unexpected HTTP code: 404
@raphjaph
Copy link
Collaborator

It's either the cookie file or the user and pass, not both at the same time. Try again and let me know.

@krishnadude98
Copy link
Author

krishnadude98 commented Jul 26, 2023

still the same error arises while using ord --cookie-file .cookie server

bitcoin.conf

server=1
txindex=1
listen=1

ord wallet create or any commands were also not working

@raphjaph
Copy link
Collaborator

So doing bitcoin-cli getblockchaininfo works?

If so then just doing ord server should also work, since it gets the cookie file from the default location. Try running the following to see the logs: RUST_LOG=info ord server

@casey
Copy link
Collaborator

casey commented Aug 30, 2023

This is probably a misconfiguration of bitcoind, and not an issue in ord.

@casey casey closed this as completed Aug 30, 2023
@ylsGit
Copy link

ylsGit commented Jan 3, 2024

Has this issue been resolved? How?

@ylsGit
Copy link

ylsGit commented Jan 4, 2024

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

4 participants