Laravel Symfony Process doesn't stop

I'm trying to run the following script in a Laravel controller:

public function importLinkedin(Request $request)


$process = new Process("node node/[login to view URL]");


if (!$process->isSuccessful()) {

throw new ProcessFailedException($process);


echo $process->getOutput();


If I run the following command from terminal I get the expected output:

node /var/www/website/public/node/[login to view URL]

When running the script from the Laravel controller the browser doesn't stop loading until it times out. (504 Gateway Time-out)

[login to view URL] file looks like this:

const scrapedin = require('/usr/local/lib/node_modules/scrapedin')

const fs = require('fs')

const cookies = [login to view URL]('/usr/[login to view URL]')

const options = {

cookies: [login to view URL](cookies)



.then((profileScraper) => profileScraper('[login to view URL]'))

.then((profile) => [login to view URL](profile))

Kemahiran: PHP, Laravel, MySQL, Kejuruteraan Perisian, Node.js

Tentang Klien:
( 7 ulasan ) preston, United Kingdom

ID Projek: #27725225

4 pekerja bebas membida secara purata $25 untuk pekerjaan ini


Hi sir, I check [login to view URL] carefully and I am absolutely sure that I can do the project very well. If you want then we can have a 1-1 discussion on FL chat. kindly let us know. We have fin Lagi

$23 USD dalam 0 hari
(871 Ulasan)

Hello! I am placing the default bid price currently and we can discuss it later. I am professional software engineer with over 8 years of experience in Node.js, Software Architecture, MySQL, PHP and Laravel. Can offer Lagi

$30 USD dalam 7 hari
(29 Ulasan)

Hello, Nice to meet you! I have checked your job posting carefully and I am very interested in this project. I will work as a full timer. I am very confident to complete this job on high quality of work. Thanks for you Lagi

$20 USD dalam 7 hari
(14 Ulasan)

Hi there, I am a web developer with 5 years of experience. I've skill over both nodejs and laravel so i will help you fix this issue. come to chat so we can discuss. Thanks Adnan

$25 USD dalam sehari
(4 Ulasan)