conscious-sapphire•2y ago
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

3 Replies
conscious-sapphireOP•2y ago

conscious-sapphireOP•2y ago
Do I have to run a web server on the Apify platform?(https://docs.apify.com/academy/running-a-web-server#building-the-actor)
Running a web server on the Apify platform | Academy | Apify Docume...
A web server running in an actor can act as a communication channel with the outside world. Learn how to easily set one up with Node.js.
Yes, correct.
You can use article above (https://docs.apify.com/academy/running-a-web-server#building-the-actor) for the inspiration.
It should work.
Good luck)