question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BTC: NBXplorer error `Response status code does not indicate success: 401 (Unauthorized).`

See original GitHub issue

Hello, I’m configuring a fresh NBXplorer+BTCPayServer but I’m stuck on this error from BTCPayserver

BTC: NBXplorer error Response status code does not indicate success: 401 (Unauthorized). It seems very strange to me since at startup I have:

info: Configuration:  Data Directory: /home/archbox/.btcpayserver/Main
info: Configuration:  Configuration File: /home/archbox/.btcpayserver/Main/settings.config
info: Configuration:  Network: Mainnet
info: Configuration:  Supported chains: BTC
info: Configuration:  Network: Mainnet
info: Configuration:  Supported chains: BTC
info: Configuration:  Root Path: /
info: Configuration:  MySQL DB used (User ID=myuser;Password=mypassword;Host=myhost;Port=myport;Database=btcpay;)
info: Configuration:  BTC: Explorer url is http://127.0.0.1:24444/
info: Configuration:  BTC: Cookie file is /home/archbox/.bitcoin/.cookie
info: PayServer:      Starting listening NBXplorer (BTC)
info: PayServer:      Start watching invoices
info: PayServer:      Starting payment request expiration watcher
info: Configuration:  Listening on http://0.0.0.0:23000

NBXplorer is correctly listening on port 24444 and I don’t have errors in NBXplorer log:

info: Configuration:  Data Directory: /home/archbox/.nbxplorer/Main
info: Configuration:  Configuration File: /home/archbox/.nbxplorer/Main/settings.config
info: Configuration:  Network: Mainnet
info: Configuration:  Supported chains: BTC
info: Configuration:  Network: Mainnet
info: Configuration:  Supported chains: BTC
info: Configuration:  BTC: Testing RPC connection to http://127.0.0.1:8332/
Hosting environment: Production
Content root path: /home/archbox/NBXplorer/NBXplorer/bin/Release/netcoreapp2.1/
Now listening on: http://0.0.0.0:24444
Application started. Press Ctrl+C to shut down.
info: Configuration:  BTC: RPC connection successfull
info: Configuration:  BTC: Full node version detected: 170100
info: Configuration:  BTC: Loading chain from cache...
info: Configuration:  BTC: Height: 566333
info: Configuration:  BTC: Loading chain from node (127.0.0.1:8333)...
info: Explorer:       BTC: TCP Connection succeed, handshaking...
info: Explorer:       BTC: Handshaked
info: Explorer:       BTC: Loading chain...
info: Explorer:       BTC: Chain loaded
info: Explorer:       BTC: NBXplorer is correctly whitelisted by the node
info: Configuration:  BTC: Height: 566338
info: Configuration:  BTC: Saving chain to cache...
info: Configuration:  BTC: Chain cached
info: Explorer:       BTC: Handshaked node
info: Explorer:       BTC: Starting scan at block 566338
info: Events:         BTC: Node state changed: NotStarted => NBXplorerSynching
info: Events:         BTC: Node state changed: NBXplorerSynching => Ready
info: Events:         BTC: New block 000000000000000000100d214e80b87bfa133035b1462359af5ee388d6396ac5 (566339)

Any ideas or suggestions about my configuration? Thanks in advice.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
drkaminecommented, Mar 21, 2019

haw i can fix this error all the information in RPC is correct

Configuration: BTC: Error connecting to RPC server Response status code does not indicate success: 401 (Unauthorized).

0reactions
danbadjarcommented, Mar 9, 2019

Sure thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Response status code does not indicate success: 401 in ...
According to the error info: Response status code does not indicate success: 401 (Unauthorized). It seems you are not provide the ...
Read more >
Cant connect with My Own BTC full core node server
Hi Support, I have installed this plugin i would like to connect with my BTC ... with status=”0″ and error=”Failed to connect to...
Read more >
Bitcoin RPC returning 401
I am using node-bitcoin-rpc to do some api calls to bitcoind, but I am getting 401 error. I know this simply means unauthorized,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found