Problem using express

I have POST Request /api/web-crawler for webCrawler method, but when I try to call the api, I get the error Error: socket hang up
import express, {Request, Response} from 'express';
import bodyParser from 'body-parser';
import cors from 'cors';
import {crawlerRoute} from "./src/routes/crawlerRoute";

const app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cors());

app.use('/api', crawlerRoute);

export default app;
image.png
Was this page helpful?