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

Send an unauthenticated error to RPC callers when no/unmatched credentials are provided #9190

Open
oxarbitrage opened this issue Jan 31, 2025 · 0 comments

Comments

@oxarbitrage
Copy link
Contributor

The rpc.enable_cookie_auth config option is on by default but when a user try to make a call to the server there is no error message saying that the request is not authenticated but an empty reply.

$ curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'Content-type: application/json' http://127.0.0.1:8232/ | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    71    0     0  100    71      0  96336 --:--:-- --:--:-- --:--:-- 71000
curl: (52) Empty reply from server

I think we had this working before but we broke it at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

No branches or pull requests

1 participant