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

Local Host Secure Connection Failed: SSL_ERROR_RX_RECORD_TOO_LONG #26

Open
Beacon24 opened this issue Nov 6, 2022 · 3 comments
Open

Comments

@Beacon24
Copy link

Beacon24 commented Nov 6, 2022

Everything is working properly on my heroku app, but now when I try to run the app on my localhost I get the following error in my browser window:

Secure Connection Failed

An error occurred during a connection to localhost:3000. SSL received a record that exceeded the maximum permissible length.

Error code: SSL_ERROR_RX_RECORD_TOO_LONG

Any tips? I tried adding

if (app.get("env") === "production") {
   app.use(enforce.HTTPS({ trustProtoHeader: true }));
}

It did not work. Thanks!

@Beacon24
Copy link
Author

Beacon24 commented Nov 8, 2022

I have now uninstalled sslify, and removed all the related lines of code, and I still can't run the app on localhost:3000! I'm not sure what to do.

@Beacon24
Copy link
Author

Beacon24 commented Nov 8, 2022

Ok, figured it out, deleted all history and data, now it works.

Followed the advice here: https://kinsta.com/knowledgebase/ssl_error_rx_record_too_long/

@Beacon24 Beacon24 closed this as completed Nov 8, 2022
@Beacon24
Copy link
Author

Beacon24 commented Nov 8, 2022

Actually this only helped to allow me to use the localhost if I keep sslify uninstalled. When I tried to reinstall it, the same problem re-occurred.

@Beacon24 Beacon24 reopened this Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant