skip to Main Content

I am using Laravel with Xampp. When I put http://127.0.0.1:8000 in the browser. I go to the Laravel home page but when I put http://127.0.0.1:8000/admin, I get a PR_END_OF_FILE_ERROR.

This is the error;

An error occurred during a connection to 127.0.0.1:8000. PR_END_OF_FILE_ERROR

Error code: PR_END_OF_FILE_ERROR

The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.

In Chrome, the error for http://127.0.0.1:8000/admin is This site can’t be reached127.0.0.1 unexpectedly closed the connection.

What do I do to rectify this error.

2

Answers


  1. Chosen as BEST ANSWER

    I was losing my mind over this. It has been 2 days of trying to figure this out and I was failing miserably until I found a YouTube video with the answer.

    So basically, first stop the server with ctrl + c, then go to the project folder and open the command prompt there. Then run php artisan optimize. After run the usual php artisan serve to start the server. Things should work fine now


  2. The "PR_END_OF_FILE_ERROR" typically pertains to OpenSSL and is not specific to Laravel. In the context of Laravel, this error can occur when there is an issue with the SSL/TLS connection while making HTTP requests using packages like Guzzle.

    To troubleshoot and resolve the "PR_END_OF_FILE_ERROR" in a Laravel application, you can consider the following steps:

    1. Verify the SSL/TLS configuration:

      • Check if the SSL/TLS certificate being used is valid and properly configured.
      • Ensure that the certificate files and their paths are correct.
      • Validate that the SSL/TLS protocol and cipher suites are configured correctly.
    2. Check the remote server:

      • Ensure that the remote server is running and reachable.
      • Verify that the server’s SSL/TLS configuration is correct and matches the one used in your Laravel application.
      • Check if the remote server has any rate limiting or security measures that might be affecting the connection.
    3. Verify network connectivity:

      • Ensure that your server has proper network connectivity.
      • Check if any firewall or security software is blocking the connection.
      • Verify that there are no network interruptions or connectivity issues between your server and the remote server.
    4. Check Guzzle settings:

      • If you are using Guzzle as an HTTP client in your Laravel application, review the Guzzle settings and options.
      • Ensure that you are using the correct SSL/TLS options and configuration when making requests.
    5. Review server logs:

      • Check the Laravel application logs for any additional error messages or clues related to the "PR_END_OF_FILE_ERROR."
      • Review the web server logs (e.g., Apache, Nginx) for any SSL/TLS-related errors.

    It’s important to investigate the specific context and scenario where you are encountering the "PR_END_OF_FILE_ERROR" in your Laravel application. The above steps provide a general guideline, but the exact resolution may depend on your application’s specific setup and configuration.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search