Open Luen opened 4 years ago
Hi Max,
It seems like you wrote this script for Heroku. However, I've tried deploying this script on Heroku but get the following error:
2020-11-19T01:40:36.769848+00:00 heroku[web.1]: Starting process with commandnode Controller/Main.js 2020-11-19T01:40:39.732844+00:00 app[web.1]: internal/modules/cjs/loader.js:834 2020-11-19T01:40:39.732864+00:00 app[web.1]: throw err; 2020-11-19T01:40:39.732865+00:00 app[web.1]: ^ 2020-11-19T01:40:39.732865+00:00 app[web.1]: 2020-11-19T01:40:39.732865+00:00 app[web.1]: Error: Cannot find module '/app/Controller/Main.js' 2020-11-19T01:40:39.732866+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)2020-11-19T01:40:39.732866+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:687:27) 2020-11-19T01:40:39.732867+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) 2020-11-19T01:40:39.732867+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 { 2020-11-19T01:40:39.732867+00:00 app[web.1]: code: 'MODULE_NOT_FOUND', 2020-11-19T01:40:39.732868+00:00 app[web.1]: requireStack: [] 2020-11-19T01:40:39.732868+00:00 app[web.1]: } 2020-11-19T01:40:39.803774+00:00 heroku[web.1]: Process exited with status 1 2020-11-19T01:40:39.849972+00:00 heroku[web.1]: State changed from starting to crashed 2020-11-19T01:40:39.853422+00:00 heroku[web.1]: State changed from crashed to starting 2020-11-19T01:40:43.000000+00:00 app[api]: Build succeeded 2020-11-19T01:40:47.440435+00:00 heroku[web.1]: Starting process with commandnode Controller/Main.js 2020-11-19T01:40:49.767487+00:00 app[web.1]: internal/modules/cjs/loader.js:834 2020-11-19T01:40:49.767504+00:00 app[web.1]: throw err; 2020-11-19T01:40:49.767504+00:00 app[web.1]: ^ 2020-11-19T01:40:49.767504+00:00 app[web.1]: 2020-11-19T01:40:49.767505+00:00 app[web.1]: Error: Cannot find module '/app/Controller/Main.js' 2020-11-19T01:40:49.767506+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)2020-11-19T01:40:49.767507+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:687:27) 2020-11-19T01:40:49.767508+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) 2020-11-19T01:40:49.767508+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 { 2020-11-19T01:40:49.767508+00:00 app[web.1]: code: 'MODULE_NOT_FOUND', 2020-11-19T01:40:49.767509+00:00 app[web.1]: requireStack: [] 2020-11-19T01:40:49.767509+00:00 app[web.1]: } 2020-11-19T01:40:49.814752+00:00 heroku[web.1]: Process exited with status 1 2020-11-19T01:40:49.850531+00:00 heroku[web.1]: State changed from starting to crashed 2020-11-19T01:40:51.153906+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=strava-auto-auth.herokuapp.com request_id=d39c5a3d-98df-46f5-99ed-adda8653abac fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T01:40:51.864012+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=strava-auto-auth.herokuapp.com request_id=3a214c71-9b46-4009-8c55-eddfb58fc209 fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T01:41:11.280685+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/Tracks_Strava_All/681/1562/12" host=strava-auto-auth.herokuapp.com request_id=9583d645-f48f-4aca-86fe-6c077280b074 fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T01:41:11.870191+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=strava-auto-auth.herokuapp.com request_id=703f47fb-c121-4418-a5b8-98d193dcea28 fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T02:02:38.128802+00:00 heroku[web.1]: State changed from crashed to starting 2020-11-19T02:02:48.168738+00:00 heroku[web.1]: Starting process with commandnode Controller/Main.js 2020-11-19T02:02:50.720176+00:00 heroku[web.1]: Process exited with status 1 2020-11-19T02:02:50.797578+00:00 heroku[web.1]: State changed from starting to crashed 2020-11-19T02:02:50.649582+00:00 app[web.1]: internal/modules/cjs/loader.js:834 2020-11-19T02:02:50.649594+00:00 app[web.1]: throw err; 2020-11-19T02:02:50.649595+00:00 app[web.1]: ^ 2020-11-19T02:02:50.649595+00:00 app[web.1]: 2020-11-19T02:02:50.649595+00:00 app[web.1]: Error: Cannot find module '/app/Controller/Main.js' 2020-11-19T02:02:50.649596+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15) 2020-11-19T02:02:50.649596+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:687:27) 2020-11-19T02:02:50.649597+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) 2020-11-19T02:02:50.649597+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 { 2020-11-19T02:02:50.649598+00:00 app[web.1]: code: 'MODULE_NOT_FOUND', 2020-11-19T02:02:50.649598+00:00 app[web.1]: requireStack: [] 2020-11-19T02:02:50.649599+00:00 app[web.1]: }
2020-11-19T01:40:36.769848+00:00 heroku[web.1]: Starting process with command
2020-11-19T01:40:39.732844+00:00 app[web.1]: internal/modules/cjs/loader.js:834 2020-11-19T01:40:39.732864+00:00 app[web.1]: throw err; 2020-11-19T01:40:39.732865+00:00 app[web.1]: ^ 2020-11-19T01:40:39.732865+00:00 app[web.1]: 2020-11-19T01:40:39.732865+00:00 app[web.1]: Error: Cannot find module '/app/Controller/Main.js' 2020-11-19T01:40:39.732866+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)2020-11-19T01:40:39.732866+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:687:27) 2020-11-19T01:40:39.732867+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) 2020-11-19T01:40:39.732867+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 { 2020-11-19T01:40:39.732867+00:00 app[web.1]: code: 'MODULE_NOT_FOUND', 2020-11-19T01:40:39.732868+00:00 app[web.1]: requireStack: [] 2020-11-19T01:40:39.732868+00:00 app[web.1]: } 2020-11-19T01:40:39.803774+00:00 heroku[web.1]: Process exited with status 1 2020-11-19T01:40:39.849972+00:00 heroku[web.1]: State changed from starting to crashed 2020-11-19T01:40:39.853422+00:00 heroku[web.1]: State changed from crashed to starting 2020-11-19T01:40:43.000000+00:00 app[api]: Build succeeded 2020-11-19T01:40:47.440435+00:00 heroku[web.1]: Starting process with command
2020-11-19T01:40:49.767487+00:00 app[web.1]: internal/modules/cjs/loader.js:834 2020-11-19T01:40:49.767504+00:00 app[web.1]: throw err; 2020-11-19T01:40:49.767504+00:00 app[web.1]: ^ 2020-11-19T01:40:49.767504+00:00 app[web.1]: 2020-11-19T01:40:49.767505+00:00 app[web.1]: Error: Cannot find module '/app/Controller/Main.js' 2020-11-19T01:40:49.767506+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)2020-11-19T01:40:49.767507+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:687:27) 2020-11-19T01:40:49.767508+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) 2020-11-19T01:40:49.767508+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 { 2020-11-19T01:40:49.767508+00:00 app[web.1]: code: 'MODULE_NOT_FOUND', 2020-11-19T01:40:49.767509+00:00 app[web.1]: requireStack: [] 2020-11-19T01:40:49.767509+00:00 app[web.1]: } 2020-11-19T01:40:49.814752+00:00 heroku[web.1]: Process exited with status 1 2020-11-19T01:40:49.850531+00:00 heroku[web.1]: State changed from starting to crashed 2020-11-19T01:40:51.153906+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=strava-auto-auth.herokuapp.com request_id=d39c5a3d-98df-46f5-99ed-adda8653abac fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T01:40:51.864012+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=strava-auto-auth.herokuapp.com request_id=3a214c71-9b46-4009-8c55-eddfb58fc209 fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T01:41:11.280685+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/Tracks_Strava_All/681/1562/12" host=strava-auto-auth.herokuapp.com request_id=9583d645-f48f-4aca-86fe-6c077280b074 fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T01:41:11.870191+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=strava-auto-auth.herokuapp.com request_id=703f47fb-c121-4418-a5b8-98d193dcea28 fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T02:02:38.128802+00:00 heroku[web.1]: State changed from crashed to starting 2020-11-19T02:02:48.168738+00:00 heroku[web.1]: Starting process with command
2020-11-19T02:02:50.720176+00:00 heroku[web.1]: Process exited with status 1 2020-11-19T02:02:50.797578+00:00 heroku[web.1]: State changed from starting to crashed 2020-11-19T02:02:50.649582+00:00 app[web.1]: internal/modules/cjs/loader.js:834 2020-11-19T02:02:50.649594+00:00 app[web.1]: throw err; 2020-11-19T02:02:50.649595+00:00 app[web.1]: ^ 2020-11-19T02:02:50.649595+00:00 app[web.1]: 2020-11-19T02:02:50.649595+00:00 app[web.1]: Error: Cannot find module '/app/Controller/Main.js' 2020-11-19T02:02:50.649596+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15) 2020-11-19T02:02:50.649596+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:687:27) 2020-11-19T02:02:50.649597+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) 2020-11-19T02:02:50.649597+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 { 2020-11-19T02:02:50.649598+00:00 app[web.1]: code: 'MODULE_NOT_FOUND', 2020-11-19T02:02:50.649598+00:00 app[web.1]: requireStack: [] 2020-11-19T02:02:50.649599+00:00 app[web.1]: }
And help is appreciated.
Hi Max,
It seems like you wrote this script for Heroku. However, I've tried deploying this script on Heroku but get the following error:
2020-11-19T01:40:36.769848+00:00 heroku[web.1]: Starting process with command
node Controller/Main.js2020-11-19T01:40:39.732844+00:00 app[web.1]: internal/modules/cjs/loader.js:834 2020-11-19T01:40:39.732864+00:00 app[web.1]: throw err; 2020-11-19T01:40:39.732865+00:00 app[web.1]: ^ 2020-11-19T01:40:39.732865+00:00 app[web.1]: 2020-11-19T01:40:39.732865+00:00 app[web.1]: Error: Cannot find module '/app/Controller/Main.js' 2020-11-19T01:40:39.732866+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)2020-11-19T01:40:39.732866+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:687:27) 2020-11-19T01:40:39.732867+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) 2020-11-19T01:40:39.732867+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 { 2020-11-19T01:40:39.732867+00:00 app[web.1]: code: 'MODULE_NOT_FOUND', 2020-11-19T01:40:39.732868+00:00 app[web.1]: requireStack: [] 2020-11-19T01:40:39.732868+00:00 app[web.1]: } 2020-11-19T01:40:39.803774+00:00 heroku[web.1]: Process exited with status 1 2020-11-19T01:40:39.849972+00:00 heroku[web.1]: State changed from starting to crashed 2020-11-19T01:40:39.853422+00:00 heroku[web.1]: State changed from crashed to starting 2020-11-19T01:40:43.000000+00:00 app[api]: Build succeeded 2020-11-19T01:40:47.440435+00:00 heroku[web.1]: Starting process with command
node Controller/Main.js2020-11-19T01:40:49.767487+00:00 app[web.1]: internal/modules/cjs/loader.js:834 2020-11-19T01:40:49.767504+00:00 app[web.1]: throw err; 2020-11-19T01:40:49.767504+00:00 app[web.1]: ^ 2020-11-19T01:40:49.767504+00:00 app[web.1]: 2020-11-19T01:40:49.767505+00:00 app[web.1]: Error: Cannot find module '/app/Controller/Main.js' 2020-11-19T01:40:49.767506+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)2020-11-19T01:40:49.767507+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:687:27) 2020-11-19T01:40:49.767508+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) 2020-11-19T01:40:49.767508+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 { 2020-11-19T01:40:49.767508+00:00 app[web.1]: code: 'MODULE_NOT_FOUND', 2020-11-19T01:40:49.767509+00:00 app[web.1]: requireStack: [] 2020-11-19T01:40:49.767509+00:00 app[web.1]: } 2020-11-19T01:40:49.814752+00:00 heroku[web.1]: Process exited with status 1 2020-11-19T01:40:49.850531+00:00 heroku[web.1]: State changed from starting to crashed 2020-11-19T01:40:51.153906+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=strava-auto-auth.herokuapp.com request_id=d39c5a3d-98df-46f5-99ed-adda8653abac fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T01:40:51.864012+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=strava-auto-auth.herokuapp.com request_id=3a214c71-9b46-4009-8c55-eddfb58fc209 fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T01:41:11.280685+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/api/v1/Tracks_Strava_All/681/1562/12" host=strava-auto-auth.herokuapp.com request_id=9583d645-f48f-4aca-86fe-6c077280b074 fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T01:41:11.870191+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=strava-auto-auth.herokuapp.com request_id=703f47fb-c121-4418-a5b8-98d193dcea28 fwd="1.128.110.89" dyno= connect= service= status=503 bytes= protocol=https 2020-11-19T02:02:38.128802+00:00 heroku[web.1]: State changed from crashed to starting 2020-11-19T02:02:48.168738+00:00 heroku[web.1]: Starting process with command
node Controller/Main.js2020-11-19T02:02:50.720176+00:00 heroku[web.1]: Process exited with status 1 2020-11-19T02:02:50.797578+00:00 heroku[web.1]: State changed from starting to crashed 2020-11-19T02:02:50.649582+00:00 app[web.1]: internal/modules/cjs/loader.js:834 2020-11-19T02:02:50.649594+00:00 app[web.1]: throw err; 2020-11-19T02:02:50.649595+00:00 app[web.1]: ^ 2020-11-19T02:02:50.649595+00:00 app[web.1]: 2020-11-19T02:02:50.649595+00:00 app[web.1]: Error: Cannot find module '/app/Controller/Main.js' 2020-11-19T02:02:50.649596+00:00 app[web.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15) 2020-11-19T02:02:50.649596+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:687:27) 2020-11-19T02:02:50.649597+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) 2020-11-19T02:02:50.649597+00:00 app[web.1]: at internal/main/run_main_module.js:17:47 { 2020-11-19T02:02:50.649598+00:00 app[web.1]: code: 'MODULE_NOT_FOUND', 2020-11-19T02:02:50.649598+00:00 app[web.1]: requireStack: [] 2020-11-19T02:02:50.649599+00:00 app[web.1]: }
And help is appreciated.