Navigation Menu

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

HTTP status code when client IP is not allowed #6037

Closed
fchavant opened this issue Dec 2, 2020 · 0 comments
Closed

HTTP status code when client IP is not allowed #6037

fchavant opened this issue Dec 2, 2020 · 0 comments

Comments

@fchavant
Copy link
Contributor

fchavant commented Dec 2, 2020

Expected behavior

If the client IP is not allowed to access an API the response HTTP status code should be 401.

Actual behavior

The HTTP and monitoring APIs (and possibly more) return 500.

Steps to reproduce

lisk-core start --enable-http-api-plugin --http-api-plugin-port=5000 --http-api-plugin-whitelist=1.2.3.4
curl --verbose http://127.0.0.1:5000/api/node/info

Which version(s) does this affect? (Environment, OS, etc...)

5.0.0 / 3.0.0-beta.2

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

No branches or pull requests

5 participants