To sum up the unauthorized: 401 error encountered for the first time, in fact, a very simple error:
When running tomcat, when I enter localhost: 8080, a prompt box pops up:
error 401: unauthorized
Any client (such as your browser) needs to pass the following cycle: obtain an IP address from the IP name of the site (i.e. your site URL, without the initial ‘http://’). This correspondence (i.e. the correspondence from IP name to IP address translation) is provided by domain name servers (dnss).
Open an IP socket to connect to the IP address. Write HTTP data stream through this socket. The HTTP data stream that receives the response from the web server. The data stream includes a status code whose value depends on the HTTP protocol. Parse the data stream to get state code and other useful information.
The error is generated in the last step described above, that is, when the client receives the HTTP status code and identifies it as 401. After the browser receives the 401 error message, it explains it and provides a dialog box for entering user name/password. Send to the server after completion. After the server verifies, it sends the requested resources to the browser when the verification passes, otherwise it may send 401 error messages.
My error at that time was that the port number was occupied: so release the port or redefine the new port number
HTTP 400 – the request is invalid;
Http 401.1 – unauthorized: login failed;
Http 401.2 – unauthorized: login failed due to server configuration problems;
Http 401.3 – ACL prohibits access to resources;
Http 401.4 – unauthorized: authorization is rejected by the filter;
Http 401.5 – unauthorized: ISAPI or CGI authorization failed
- The reason and solution for the error ECONNRESET of the httpClieint request of Node.js
- How to Solve Error: Heartbeating to master:7182 failed.
- HTTP Error 401.3 – Unauthorized Error – While creating IIS 7.0 web site on Windows 7
- Error received: error: xhr’get’to URL cross domain [How to Solve]
- Start failure: spawn CMD enoent error (How to Fix)
- XAMPP Error: Apache shutdown unexpectedly.This may be due to a blocked port, missing dependencies…
- Jupyter specifies that the port is open; Importerror: DLL load failed error
- How to Fix TNS 12560 Error
- NBU The vnet proxy encounrtened an error [How to Solve]
- [Solved] MinIO Start Error: “WARNING: Console endpoint is listening on a dynamic port…”
- UnknownHostException error when connecting to Mongo cluster Java
- Flask Startup Error: s.bind(server_address)PermissionError: [Errno 13] Permission denied
- [Solved] Eureka related services Start Error: cannot execute request on any known server
- Weblogic Start Error: weblogic.management.DeploymentException: weblogic.management.DeploymentException:
- Tensorflow Error polling for event status: failed to query event: CUDA_ERROR_ILLEGAL_ADDRESS
- Nacos Error: server is DOWN now, please try again later! [How to Solve]
- [Solved] – npm run dev Error: listen EADDRINUSE: address already in use :::8000(or 8080 etc.)
- [Solved] Mycat Startup Error: ERROR Startup failed: Timed out waiting for a signal from the JVM
- C++ Opencv+BaiDu OCR“error“: “unsupported_grant_type“, “error_description“: “The authorization grant
- How to Solve Rabbitmq Error: Failed to start RabbitMQ broker