Encountering an error with errno -100, code 'EPROTO', and syscall 'write' while trying to access localhost:3000 in my frontend repository

It's been a while since I last worked on this repository, and from what I remember, it was running smoothly before it went dormant for almost a year. I'm concerned that the SSL certificate may have expired or needs an update causing issues. I attempted to resolve by deleting the node_modules folder and re-installing, but had no luck.

https://i.stack.imgur.com/wsT8X.png

The error message I am encountering is displayed in the VS Code terminal:

Error: write EPROTO 140704571122880:error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 80

    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16) {
  errno: -100,
  code: 'EPROTO',
  syscall: 'write',
  response: undefined
}

The error also shows up in the console of the Chrome browser:

Uncaught     at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16)

I'm uncertain about what details to provide, but if there are any specific questions, feel free to ask for more information.

When trying to run npm run dev, the frontend repository compiles successfully. However, upon visiting localhost:3000, an SSL error occurs.

Answer №1

Discovering the culprit behind the SSL error, I realized that one of the environment variables (API_HOST) in my .env file was causing the issue. By changing API_HOST to localhost while running the backend locally, I successfully bypassed the error. Sharing this experience in hopes that it may assist others facing a similar situation.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Windows authentication login only appears in Chrome after opening the developer tools

My current issue involves a React app that needs to authenticate against a windows auth server. To achieve this, I'm hitting an endpoint to fetch user details with the credentials included in the header. As per my understanding, this should trigger th ...

Issue with installing packages using node.js 9 and npm 5.5.1: encountering errors during installation process

After recently updating my project to node.js 9.1.0 (and bundle nom 5.5.1), I am encountering errors when trying to run the installation process. Even with verbose output in the logs, I am struggling to pinpoint where exactly the problem lies. Any assist ...

What is the procedure to switch the state using useState when an event is activated?

I'm trying to learn React by implementing a basic shop. One idea I had was to have multiple product images and when a user clicks on an image, it flips around to display additional information such as comments and ratings for the product. For this pr ...

Collaborating on PHPStorm file watchers across different operating systems

Is there a way to create a file watcher that can run the (npm) gulp command when a file is changed, and have it work on both mac and windows without having to use explicit paths? Currently, I was only successful in making this work by specifying the paths ...

Utilizing ReactJS within Asp.net 4.0: A Beginner's Guide

Is it feasible to integrate ReactJS into an Asp.net 4.0 project using only js files? Are there any Nuget packages that need to be installed for this integration? Seeking guidance on how to effectively incorporate ReactJS into my Asp.net 4.0 application. ...

What is the process for configuring SSL certificates for a web server's CNAME using NodeJS and ExpressJS?

After successfully configuring SSL certificates for a NodeJS web server in the setup outlined below, everything is running smoothly: process.env.HTTPS_PORT = 3000; // Listening on HTTPS port 3000. process.env.HTTP_PORT = 6000; // Listening on HTTP ...

What is the best way to maintain Redux state between Redux @init executions?

I am working on a React app that makes use of redux.js. One issue I encountered is related to a timeoutMonitor function that triggers when a user fails to complete a task within a set timeframe. This function dispatches a redux action (logoutUser()) and up ...

Extracting the value from a Text Editor in React Js: [Code snippet provided]

Currently, I am in the process of developing a basic app that generates a JSON form. So far, I have successfully incorporated sections for basic details and employment information. The basic details section consists of two input fields: First Name and Las ...

transfer properties to a dynamic sub element

I am currently working on a multi-step form project. I have successfully implemented the form so that each step displays the corresponding form dynamically. However, I am facing challenges in passing props to these components in order to preserve the state ...

npm - Configuring the maximum memory usage in npm

I encountered an error message while trying to build my Angular project, The error states: "CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory" I read somewhere that adjusting the max-old-space-size in npm could resolve this issue. How ...

Trying out the componentWillUnmount() function to erase a class from the body element

In my React component, I have the following code: componentWillUnmount () { document.body.classList.remove('isPreloaded') } Initially, in my index.html file, I have a body tag with the class isPreloaded, along with a Preloader HTML and ...

The component <FormControl /> does not support the variant prop

It's perplexing to me why <FormControl /> doesn't seem to accept the prop variant. Even though the documentation suggests that this prop is available. import React from "react"; import { render } from "react-dom"; import FormControl from " ...

Renaming the month in Material-UI React

Using DatePicker from Material Ui, I am trying to change the name of the month. How can this be achieved? For instance, I need to change August to Avqust or March to Mart enter image description here This is my code: <LocalizationProvider ...

Is there a way to prevent Material-UI SpeedDial from automatically closing when a SpeedDialAction button is clicked?

Looking to customize the functionality of Material-UI's SpeedDial component (https://material-ui.com/api/speed-dial/). At present, when a SpeedDialAction is clicked, the main SpeedDial component automatically closes. I want to modify this behavior s ...

Steps for deploying an npm project to Heroku

Currently, I have an npm project created with vue-cli and a socket.io server. This is the structure of my project: Project/ |--node_server/ | |--server.js |--src/ | |--main.js | |--App.vue | |--other .vue files and folders I am facing difficulties d ...

Utilizing properties from the same object based on certain conditions

Here's a perplexing query that's been on my mind lately. I have this object with all the styles I need to apply to an element in my React app. const LinkStyle = { textDecoration : 'none', color : 'rgba(58, 62, 65, 1)', ...

Issue encountered: Material-UI menu remains open even when a dialog is active

Currently, I am utilizing react along with material-ui. In my JSX file, I have created a dialog component as follows: export default class CartoviewAbout extends React.Component { constructor(props) { super(props); this. ...

Why doesn't Material-UI seem to understand the theme.spacing function?

Issue with Material-UI's theme.spacing function I've encountered a problem while using Material-UI's theme.spacing function in a React application. It seems that the spacing function is not being recognized. The Javascript error message st ...

What triggers the @auth0/nextjs-auth0 package to call the /me API every time the route changes?

Recently, I integrated the auth0 SDK into my Next.js projects and overall it's been a smooth process. However, I've encountered a minor issue. Every time I change routes while logged in, the /me API is invoked. This leads to the user obtained thr ...

Trouble encountered while executing npm run build using create-react-app

I created a small react application using the create-react-app template. The app functions properly when serving the content with npm run. However, when attempting to run the builder for the first time to showcase a demo, I encountered an error while exec ...