t9tio / cloudquery

Turn any website to API by several clicks (serverless and support SPA!)
https://cloudquery.t9t.io/
GNU General Public License v3.0
2.16k stars 136 forks source link

Internal server error when deploying to lambda using up #2

Closed rizrmd closed 5 years ago

rizrmd commented 5 years ago

Here is the url: https://hc9uu2q149.execute-api.us-west-2.amazonaws.com/staging/ I don't really know where to start debugging, should I provide any other info ?

timqian commented 5 years ago

Hi @rizkyramadhan thanks for tring cloudquery out, can you try

up logs

in the terminal and paste the recent logs here?

rizrmd commented 5 years ago

Jan 24th 08:51:09pm INFO staging a86ee84 initializing Jan 24th 08:51:09pm INFO staging a86ee84 starting app: PORT=40037 command=node app.js Jan 24th 08:51:09pm INFO staging a86ee84 started app Jan 24th 08:51:09pm INFO staging a86ee84 waiting for app to listen on PORT Jan 24th 08:51:09pm ERRO staging a86ee84 module.js:549 Jan 24th 08:51:09pm ERRO staging a86ee84 throw err; Jan 24th 08:51:09pm ERRO staging a86ee84 ^ Jan 24th 08:51:09pm ERRO staging a86ee84 Jan 24th 08:51:09pm ERRO staging a86ee84 Error: Cannot find module '@serverless-chrome/lambda' Jan 24th 08:51:09pm ERRO staging a86ee84 at Function.Module._resolveFilename (module.js:547:15) Jan 24th 08:51:09pm ERRO staging a86ee84 at Function.Module._load (module.js:474:25) Jan 24th 08:51:09pm ERRO staging a86ee84 at Module.require (module.js:596:17) Jan 24th 08:51:09pm ERRO staging a86ee84 at require (internal/module.js:11:18) Jan 24th 08:51:09pm ERRO staging a86ee84 at Object. (/var/task/app.js:6:22) Jan 24th 08:51:09pm ERRO staging a86ee84 at Module._compile (module.js:652:30) Jan 24th 08:51:09pm ERRO staging a86ee84 at Object.Module._extensions..js (module.js:663:10) Jan 24th 08:51:09pm ERRO staging a86ee84 at Module.load (module.js:565:32) Jan 24th 08:51:09pm ERRO staging a86ee84 at tryModuleLoad (module.js:505:12) Jan 24th 08:51:09pm ERRO staging a86ee84 at Function.Module._load (module.js:497:3) Jan 24th 08:51:24pm FATA staging a86ee84 error creating handler: waiting for http://127.0.0.1:40037 to be in listening state: timed out after 15s: name=rizky type=server Jan 24th 08:51:24pm INFO 2019-01-24T13:51:24.078Z 19c73edb-cf28-4d09-afff-611442f2bf88 Error: read ECONNRESET at _errnoException (util.js:1022:11) at Pipe.onread (net.js:628:25) Jan 24th 08:51:24pm INFO REPORT RequestId: 19c73edb-cf28-4d09-afff-611442f2bf88 Duration: 15246.71 ms Billed Duration: 15300 ms Memory Size:512 MB Max Memory Used: 42 MB Jan 24th 08:51:24pm INFO RequestId: 19c73edb-cf28-4d09-afff-611442f2bf88 Process exited before completing request

rizrmd commented 5 years ago

It looks like missing npm install before starting the server

timqian commented 5 years ago

Yes, npm install is necessary before deployment, I will add this in readme or introduce in the up deploy procedure. Thanks