Code Monkey home page Code Monkey logo

wa-automate-deploy-heroku's People

Contributors

dependabot[bot] avatar smashah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wa-automate-deploy-heroku's Issues

`UPDATING @OPEN-WA` reboot loop

I've deployed the API to Heroku and it appears that it's constantly trying to update and it saves changes to package-lock.json which is ephemeral because Heroku doesn't store files between reboots, so it results in a reboot loop.

Is there a way to either disable updates or prevent this loop from occurring?

Logs:

2021-03-08T16:28:00.262117+00:00 app[web.1]: - Authenticated
2021-03-08T16:28:00.262594+00:00 app[web.1]: - Injecting api
2021-03-08T16:28:03.148657+00:00 app[web.1]: - WAPI Injected
2021-03-08T16:28:03.228906+00:00 app[web.1]: - The session is invalid. Retrying
2021-03-08T16:28:03.387940+00:00 app[web.1]: UPDATING @OPEN-WA
2021-03-08T16:28:29.429384+00:00 app[web.1]: npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
2021-03-08T16:28:30.198248+00:00 app[web.1]: npm WARN deprecated [email protected]: this library is no longer supported
2021-03-08T16:28:53.810166+00:00 app[web.1]: npm WARN rm not removing /app/node_modules/.bin/semver as it wasn't installed by /app/node_modules/semver
2021-03-08T16:28:53.878600+00:00 app[web.1]: npm WARN rm not removing /app/node_modules/.bin/tsc as it wasn't installed by /app/node_modules/typescript
2021-03-08T16:28:53.878932+00:00 app[web.1]: npm WARN rm not removing /app/node_modules/.bin/tsserver as it wasn't installed by /app/node_modules/typescript
2021-03-08T16:29:04.162755+00:00 app[web.1]: 
2021-03-08T16:29:04.162764+00:00 app[web.1]: > [email protected] install /app/node_modules/puppeteer
2021-03-08T16:29:04.162765+00:00 app[web.1]: > node install.js
2021-03-08T16:29:04.162765+00:00 app[web.1]: 
2021-03-08T16:29:10.180648+00:00 app[web.1]: 
2021-03-08T16:29:19.643527+00:00 app[web.1]: Chromium (856583) downloaded to /app/node_modules/puppeteer/.local-chromium/linux-856583
2021-03-08T16:29:19.968884+00:00 app[web.1]: 
2021-03-08T16:29:19.968903+00:00 app[web.1]: > @open-wa/[email protected] postinstall /app/node_modules/@open-wa/wa-automate
2021-03-08T16:29:19.968904+00:00 app[web.1]: > patch-package
2021-03-08T16:29:19.968904+00:00 app[web.1]: 
2021-03-08T16:29:20.260620+00:00 app[web.1]: patch-package 6.4.6
2021-03-08T16:29:20.261450+00:00 app[web.1]: Applying patches...
2021-03-08T16:29:20.265741+00:00 app[web.1]: Error: Patch file found for package swagger-stats which is not present at node_modules/swagger-stats
2021-03-08T16:29:20.265742+00:00 app[web.1]: 
2021-03-08T16:29:20.265743+00:00 app[web.1]:   If this package is a dev dependency, rename the patch file to
2021-03-08T16:29:20.265744+00:00 app[web.1]:   
2021-03-08T16:29:20.265744+00:00 app[web.1]:     swagger-stats+0.95.18.dev.patch
2021-03-08T16:29:20.265744+00:00 app[web.1]: 
2021-03-08T16:29:20.265864+00:00 app[web.1]: ---
2021-03-08T16:29:20.265957+00:00 app[web.1]: patch-package finished with 1 error(s).
2021-03-08T16:29:21.012305+00:00 app[web.1]: npm notice created a lockfile as package-lock.json. You should commit this file.
2021-03-08T16:29:21.027469+00:00 app[web.1]: npm WARN @open-wa/[email protected] requires a peer of fluent-ffmpeg@^2.1.2 but none is installed. You must install peer dependencies yourself.
2021-03-08T16:29:21.040162+00:00 app[web.1]: npm WARN @open-wa/[email protected] requires a peer of sharp@^0.27.0 but none is installed. You must install peer dependencies yourself.
2021-03-08T16:29:21.052879+00:00 app[web.1]: npm WARN [email protected] license should be a valid SPDX license expression
2021-03-08T16:29:21.053418+00:00 app[web.1]: 
2021-03-08T16:29:21.056693+00:00 app[web.1]: + @open-wa/[email protected]
2021-03-08T16:29:21.056694+00:00 app[web.1]: added 228 packages from 134 contributors, removed 139 packages, updated 483 packages and audited 711 packages in 77.037s
2021-03-08T16:29:21.652011+00:00 app[web.1]: 
2021-03-08T16:29:21.652027+00:00 app[web.1]: 59 packages are looking for funding
2021-03-08T16:29:21.652028+00:00 app[web.1]:   run `npm fund` for details
2021-03-08T16:29:21.652028+00:00 app[web.1]: 
2021-03-08T16:29:21.653521+00:00 app[web.1]: found 1 moderate severity vulnerability
2021-03-08T16:29:21.653523+00:00 app[web.1]:   run `npm audit fix` to fix them, or `npm audit` for details
2021-03-08T16:29:21.778446+00:00 app[web.1]: UPDATED SUCCESSFULLY
2021-03-08T16:29:21.781338+00:00 app[web.1]: RESTARTING PROCESS
2021-03-08T16:29:22.175146+00:00 heroku[web.1]: Process exited with status 0
2021-03-08T16:29:22.224070+00:00 heroku[web.1]: State changed from up to crashed
2021-03-08T16:29:22.236329+00:00 heroku[web.1]: State changed from crashed to starting
2021-03-08T16:29:51.317896+00:00 heroku[web.1]: Starting process with command `npm start`
2021-03-08T16:29:55.540637+00:00 app[web.1]: [heroku-exec] Starting
2021-03-08T16:29:56.314897+00:00 app[web.1]: 
2021-03-08T16:29:56.314927+00:00 app[web.1]: > [email protected] start /app
2021-03-08T16:29:56.314929+00:00 app[web.1]: > npx @open-wa/wa-automate --disable-spins --port $PORT --popup --in-docker --qr-timeout 0 -k $API_KEY --keep-alive --keep-updated --executable-path="/app/.apt/usr/bin/google-chrome"
2021-03-08T16:29:56.314929+00:00 app[web.1]: 
2021-03-08T16:29:59.677836+00:00 app[web.1]: fresh run
2021-03-08T16:30:00.031586+00:00 app[web.1]: ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
2021-03-08T16:30:00.031597+00:00 app[web.1]: ┃                                                                                                   ┃
2021-03-08T16:30:00.031598+00:00 app[web.1]: ┃   @open-wa/wa-automate                                                                            ┃
2021-03-08T16:30:00.031598+00:00 app[web.1]: ┃    💬 🤖 The most reliable NodeJS whatsapp library for chatbots with advanced features.           ┃
2021-03-08T16:30:00.031598+00:00 app[web.1]: ┃   Version: 3.1.10                                                                                 ┃
2021-03-08T16:30:00.031599+00:00 app[web.1]: ┃   Check out the latest changes: https://github.com/open-wa/wa-automate-nodejs#latest-changes      ┃
2021-03-08T16:30:00.031599+00:00 app[web.1]: ┃                                                                                                   ┃
2021-03-08T16:30:00.031600+00:00 app[web.1]: ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
2021-03-08T16:30:00.141644+00:00 app[web.1]: You can also authenticate the session at: NA
2021-03-08T16:30:00.146048+00:00 app[web.1]: - Initializing WA
2021-03-08T16:30:00.310863+00:00 heroku[web.1]: State changed from starting to up
2021-03-08T16:30:05.903580+00:00 app[web.1]: - Browser Launched
2021-03-08T16:30:05.999375+00:00 app[web.1]: ┌─────────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
2021-03-08T16:30:05.999396+00:00 app[web.1]: │       (index)       │                                                                    Values                                                                    │
2021-03-08T16:30:05.999397+00:00 app[web.1]: ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
2021-03-08T16:30:05.999397+00:00 app[web.1]: │     WA_VERSION      │                                                                  '2.2106.5'                                                                  │
2021-03-08T16:30:05.999398+00:00 app[web.1]: │       PAGE_UA       │ 'WhatsApp/2.2037.6 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36' │
2021-03-08T16:30:05.999398+00:00 app[web.1]: │ WA_AUTOMATE_VERSION │                                                                   '3.1.10'                                                                   │
2021-03-08T16:30:05.999399+00:00 app[web.1]: │   BROWSER_VERSION   │                                                        'HeadlessChrome/88.0.4324.96'                                                         │
2021-03-08T16:30:05.999399+00:00 app[web.1]: │         OS          │                                                                 'Linux 4.4'                                                                  │
2021-03-08T16:30:05.999399+00:00 app[web.1]: │      START_TS       │                                                                1615221005944                                                                 │
2021-03-08T16:30:05.999400+00:00 app[web.1]: └─────────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
2021-03-08T16:30:06.019575+00:00 app[web.1]: - Authenticating
2021-03-08T16:30:17.491319+00:00 app[web.1]: - Authenticated
2021-03-08T16:30:17.491908+00:00 app[web.1]: - Injecting api
2021-03-08T16:30:36.869361+00:00 app[web.1]: - WAPI Injected
2021-03-08T16:30:37.081259+00:00 app[web.1]: - The session is invalid. Retrying
2021-03-08T16:30:37.538877+00:00 app[web.1]: UPDATING @OPEN-WA

Heroku Env Variable setup when user logged in.

Can we change or add env variable when we scan qr on Heroku. For the same we need to remove the required from the app.json for the Heroku to launch app without login (if we have the session we can add on that time) and when yours logged in we can set the env variable from our session key and good to go.

Allow setting some major CLI flags via process.env

For example:

--keep-alive, -a

If set, the system will force the session to refocus in this process. This will prevent you from opening a session elsewhere.
--webhook, -w

webhook to use for the listeners
--generate-api-docs, -d

Generate postman collection and expose api docs to open in browser.

Can not send video

Hi,

Hi, I have successfully install wa-automate on heroku. unfortunately, I still can not send video from easyAPI. I use API sendFile, sendFileFromUrl, sendImage they same sent as file of MP4 not video.

this is my try in swagger UI for API sendFileFromUrl

{
  "args": {
    "to": "[email protected]",
    "url": "https://i.giphy.com/media/oYtVHSxngR3lC/200w.mp4",
    "filename": "string",
    "caption": "Hello World!",
    "quotedMsgId": "",
    "requestConfig": "any",
    "waitForId": "false",
    "ptt": "false",
    "withoutPreview": "false"
  }
}

before, I have tried wa-automate-node-js and same I still can not send video, even I've installed google-chrome and ffmpeg.

maybe next I want to try for docker version.

Thank you very much.

App config prevent it from make calls

i encounter this problem when i tried /sendImage API

may request was as below

curl -X 'POST' \
  'https://myURL/sendImage' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "args": {
    "to": "[email protected]",
    "file": "DataURL:[GET]https://file-examples-com.github.io/uploads/2017/10/file_example_JPG_2500kB.jpg",
    "filename": "yaaay",
    "caption": "Hello World!"
  }
}'

and the response is

{
  "success": false,
  "error": {
    "name": "Error",
    "message": "connect ECONNREFUSED 127.0.0.1:80"
  }
}

with response header

 connection: keep-alive 
 content-length: 88 
 content-type: application/json; charset=utf-8 
 date: Mon,20 Dec 2021 19:51:47 GMT 
 etag: W/"58-WctcJ3IEkCT+vkWDIsisJukzaYg" 
 server: Cowboy 
 via: 1.1 vegur 
 x-powered-by: Express 

Here is Heroku Log as well

2021-12-20T19:51:02.844941+00:00 heroku[router]: at=info method=POST path="/sendImage" host=MyApp request_id=05669ed1-500f-41b2-a73b-ec5c009e0157 fwd="46.52.119.2" dyno=web.1 connect=0ms service=6ms status=200 bytes=295 protocol=https
2021-12-20T19:51:47.698594+00:00 heroku[router]: at=info method=POST path="/sendImage" host=MyApp request_id=e1f37539-6242-41cf-9199-5367650b507e fwd="46.52.119.2" dyno=web.1 connect=0ms service=5ms status=200 bytes=295 protocol=https
2021-12-20T19:51:47.699757+00:00 app[web.1]: middleware -> error Error: connect ECONNREFUSED 127.0.0.1:80
2021-12-20T19:51:47.699769+00:00 app[web.1]:     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
2021-12-20T19:51:47.699770+00:00 app[web.1]:   errno: -111,
2021-12-20T19:51:47.699771+00:00 app[web.1]:   code: 'ECONNREFUSED',
2021-12-20T19:51:47.699771+00:00 app[web.1]:   syscall: 'connect',
2021-12-20T19:51:47.699771+00:00 app[web.1]:   address: '127.0.0.1',
2021-12-20T19:51:47.699772+00:00 app[web.1]:   port: 80,
2021-12-20T19:51:47.699772+00:00 app[web.1]:   config: {
2021-12-20T19:51:47.699779+00:00 app[web.1]:     url: 'DataURL:[GET]https://file-examples-com.github.io/uploads/2017/10/file_example_JPG_2500kB.jpg',
2021-12-20T19:51:47.699779+00:00 app[web.1]:     method: 'get',
2021-12-20T19:51:47.699779+00:00 app[web.1]:     headers: {
2021-12-20T19:51:47.699780+00:00 app[web.1]:       Accept: 'application/json, text/plain, */*',
2021-12-20T19:51:47.699780+00:00 app[web.1]:       DNT: 1,
2021-12-20T19:51:47.699781+00:00 app[web.1]:       'Upgrade-Insecure-Requests': 1,
2021-12-20T19:51:47.699782+00:00 app[web.1]:       'User-Agent': 'axios/0.21.4'
2021-12-20T19:51:47.699782+00:00 app[web.1]:     },
2021-12-20T19:51:47.699782+00:00 app[web.1]:     transformRequest: [ [Function: transformRequest] ],
2021-12-20T19:51:47.699783+00:00 app[web.1]:     transformResponse: [ [Function: transformResponse] ],
2021-12-20T19:51:47.699783+00:00 app[web.1]:     timeout: 0,
2021-12-20T19:51:47.699783+00:00 app[web.1]:     adapter: [Function: httpAdapter],
2021-12-20T19:51:47.699783+00:00 app[web.1]:     responseType: 'arraybuffer',
2021-12-20T19:51:47.699784+00:00 app[web.1]:     xsrfCookieName: 'XSRF-TOKEN',
2021-12-20T19:51:47.699784+00:00 app[web.1]:     xsrfHeaderName: 'X-XSRF-TOKEN',
2021-12-20T19:51:47.699784+00:00 app[web.1]:     maxContentLength: -1,
2021-12-20T19:51:47.699785+00:00 app[web.1]:     maxBodyLength: -1,
2021-12-20T19:51:47.699785+00:00 app[web.1]:     validateStatus: [Function: validateStatus],
2021-12-20T19:51:47.699785+00:00 app[web.1]:     transitional: {
2021-12-20T19:51:47.699786+00:00 app[web.1]:       silentJSONParsing: true,
2021-12-20T19:51:47.699786+00:00 app[web.1]:       forcedJSONParsing: true,
2021-12-20T19:51:47.699786+00:00 app[web.1]:       clarifyTimeoutError: false
2021-12-20T19:51:47.699787+00:00 app[web.1]:     },
2021-12-20T19:51:47.699787+00:00 app[web.1]:     data: undefined
2021-12-20T19:51:47.699787+00:00 app[web.1]:   },
2021-12-20T19:51:47.699787+00:00 app[web.1]:   request: <ref *1> Writable {
2021-12-20T19:51:47.699788+00:00 app[web.1]:     _writableState: WritableState {
2021-12-20T19:51:47.699788+00:00 app[web.1]:       objectMode: false,
2021-12-20T19:51:47.699788+00:00 app[web.1]:       highWaterMark: 16384,
2021-12-20T19:51:47.699788+00:00 app[web.1]:       finalCalled: false,
2021-12-20T19:51:47.699789+00:00 app[web.1]:       needDrain: false,
2021-12-20T19:51:47.699789+00:00 app[web.1]:       ending: false,
2021-12-20T19:51:47.699789+00:00 app[web.1]:       ended: false,
2021-12-20T19:51:47.699789+00:00 app[web.1]:       finished: false,
2021-12-20T19:51:47.699789+00:00 app[web.1]:       destroyed: false,
2021-12-20T19:51:47.699790+00:00 app[web.1]:       decodeStrings: true,
2021-12-20T19:51:47.699790+00:00 app[web.1]:       defaultEncoding: 'utf8',
2021-12-20T19:51:47.699790+00:00 app[web.1]:       length: 0,
2021-12-20T19:51:47.699790+00:00 app[web.1]:       writing: false,
2021-12-20T19:51:47.699791+00:00 app[web.1]:       corked: 0,
2021-12-20T19:51:47.699791+00:00 app[web.1]:       sync: true,
2021-12-20T19:51:47.699791+00:00 app[web.1]:       bufferProcessing: false,
2021-12-20T19:51:47.699792+00:00 app[web.1]:       onwrite: [Function: bound onwrite],
2021-12-20T19:51:47.699792+00:00 app[web.1]:       writecb: null,
2021-12-20T19:51:47.699792+00:00 app[web.1]:       writelen: 0,
2021-12-20T19:51:47.699792+00:00 app[web.1]:       afterWriteTickInfo: null,
2021-12-20T19:51:47.699793+00:00 app[web.1]:       buffered: [],
2021-12-20T19:51:47.699793+00:00 app[web.1]:       bufferedIndex: 0,
2021-12-20T19:51:47.699793+00:00 app[web.1]:       allBuffers: true,
2021-12-20T19:51:47.699794+00:00 app[web.1]:       allNoop: true,
2021-12-20T19:51:47.699794+00:00 app[web.1]:       pendingcb: 0,
2021-12-20T19:51:47.699794+00:00 app[web.1]:       constructed: true,
2021-12-20T19:51:47.699795+00:00 app[web.1]:       prefinished: false,
2021-12-20T19:51:47.699795+00:00 app[web.1]:       errorEmitted: false,
2021-12-20T19:51:47.699795+00:00 app[web.1]:       emitClose: true,
2021-12-20T19:51:47.699796+00:00 app[web.1]:       autoDestroy: true,
2021-12-20T19:51:47.699796+00:00 app[web.1]:       errored: null,
2021-12-20T19:51:47.699796+00:00 app[web.1]:       closed: false,
2021-12-20T19:51:47.699796+00:00 app[web.1]:       closeEmitted: false,
2021-12-20T19:51:47.699797+00:00 app[web.1]:       [Symbol(kOnFinished)]: []
2021-12-20T19:51:47.699797+00:00 app[web.1]:     },
2021-12-20T19:51:47.699798+00:00 app[web.1]:     _events: [Object: null prototype] {
2021-12-20T19:51:47.699798+00:00 app[web.1]:       response: [Function: handleResponse],
2021-12-20T19:51:47.699799+00:00 app[web.1]:       error: [Function: handleRequestError]
2021-12-20T19:51:47.699799+00:00 app[web.1]:     },
2021-12-20T19:51:47.699801+00:00 app[web.1]:     _eventsCount: 2,
2021-12-20T19:51:47.699801+00:00 app[web.1]:     _maxListeners: undefined,
2021-12-20T19:51:47.699801+00:00 app[web.1]:     _options: {
2021-12-20T19:51:47.699802+00:00 app[web.1]:       maxRedirects: 21,
2021-12-20T19:51:47.699802+00:00 app[web.1]:       maxBodyLength: 10485760,
2021-12-20T19:51:47.699802+00:00 app[web.1]:       protocol: 'http:',
2021-12-20T19:51:47.699803+00:00 app[web.1]:       path: '/[GET]https//file-examples-com.github.io/uploads/2017/10/file_example_JPG_2500kB.jpg',
2021-12-20T19:51:47.699803+00:00 app[web.1]:       method: 'GET',
2021-12-20T19:51:47.699803+00:00 app[web.1]:       headers: [Object],
2021-12-20T19:51:47.699804+00:00 app[web.1]:       agent: undefined,
2021-12-20T19:51:47.699804+00:00 app[web.1]:       agents: [Object],
2021-12-20T19:51:47.699804+00:00 app[web.1]:       auth: undefined,
2021-12-20T19:51:47.699804+00:00 app[web.1]:       hostname: '',
2021-12-20T19:51:47.699805+00:00 app[web.1]:       port: null,
2021-12-20T19:51:47.699805+00:00 app[web.1]:       nativeProtocols: [Object],
2021-12-20T19:51:47.699805+00:00 app[web.1]:       pathname: '/[GET]https//file-examples-com.github.io/uploads/2017/10/file_example_JPG_2500kB.jpg'
2021-12-20T19:51:47.699806+00:00 app[web.1]:     },
2021-12-20T19:51:47.699806+00:00 app[web.1]:     _ended: true,
2021-12-20T19:51:47.699806+00:00 app[web.1]:     _ending: true,
2021-12-20T19:51:47.699807+00:00 app[web.1]:     _redirectCount: 0,
2021-12-20T19:51:47.699807+00:00 app[web.1]:     _redirects: [],
2021-12-20T19:51:47.699807+00:00 app[web.1]:     _requestBodyLength: 0,
2021-12-20T19:51:47.699808+00:00 app[web.1]:     _requestBodyBuffers: [],
2021-12-20T19:51:47.699808+00:00 app[web.1]:     _onNativeResponse: [Function (anonymous)],
2021-12-20T19:51:47.699808+00:00 app[web.1]:     _currentRequest: ClientRequest {
2021-12-20T19:51:47.699809+00:00 app[web.1]:       _events: [Object: null prototype],
2021-12-20T19:51:47.699809+00:00 app[web.1]:       _eventsCount: 7,
2021-12-20T19:51:47.699809+00:00 app[web.1]:       _maxListeners: undefined,
2021-12-20T19:51:47.699810+00:00 app[web.1]:       outputData: [],
2021-12-20T19:51:47.699810+00:00 app[web.1]:       outputSize: 0,
2021-12-20T19:51:47.699810+00:00 app[web.1]:       writable: true,
2021-12-20T19:51:47.699811+00:00 app[web.1]:       destroyed: false,
2021-12-20T19:51:47.699811+00:00 app[web.1]:       _last: true,
2021-12-20T19:51:47.699811+00:00 app[web.1]:       chunkedEncoding: false,
2021-12-20T19:51:47.699812+00:00 app[web.1]:       shouldKeepAlive: false,
2021-12-20T19:51:47.699812+00:00 app[web.1]:       maxRequestsOnConnectionReached: false,
2021-12-20T19:51:47.699812+00:00 app[web.1]:       _defaultKeepAlive: true,
2021-12-20T19:51:47.699813+00:00 app[web.1]:       useChunkedEncodingByDefault: false,
2021-12-20T19:51:47.699813+00:00 app[web.1]:       sendDate: false,
2021-12-20T19:51:47.699813+00:00 app[web.1]:       _removedConnection: false,
2021-12-20T19:51:47.699813+00:00 app[web.1]:       _removedContLen: false,
2021-12-20T19:51:47.699814+00:00 app[web.1]:       _removedTE: false,
2021-12-20T19:51:47.699814+00:00 app[web.1]:       _contentLength: 0,
2021-12-20T19:51:47.699814+00:00 app[web.1]:       _hasBody: true,
2021-12-20T19:51:47.699814+00:00 app[web.1]:       _trailer: '',
2021-12-20T19:51:47.699814+00:00 app[web.1]:       finished: true,
2021-12-20T19:51:47.699815+00:00 app[web.1]:       _headerSent: true,
2021-12-20T19:51:47.699815+00:00 app[web.1]:       _closed: false,
2021-12-20T19:51:47.699815+00:00 app[web.1]:       socket: [Socket],
2021-12-20T19:51:47.699817+00:00 app[web.1]:       _header: 'GET /[GET]https//file-examples-com.github.io/uploads/2017/10/file_example_JPG_2500kB.jpg HTTP/1.1\r\n' +
2021-12-20T19:51:47.699818+00:00 app[web.1]:         'Accept: application/json, text/plain, */*\r\n' +
2021-12-20T19:51:47.699818+00:00 app[web.1]:         'DNT: 1\r\n' +
2021-12-20T19:51:47.699818+00:00 app[web.1]:         'Upgrade-Insecure-Requests: 1\r\n' +
2021-12-20T19:51:47.699818+00:00 app[web.1]:         'User-Agent: axios/0.21.4\r\n' +
2021-12-20T19:51:47.699819+00:00 app[web.1]:         'Host: localhost\r\n' +
2021-12-20T19:51:47.699819+00:00 app[web.1]:         'Connection: close\r\n' +
2021-12-20T19:51:47.699819+00:00 app[web.1]:         '\r\n',
2021-12-20T19:51:47.699819+00:00 app[web.1]:       _keepAliveTimeout: 0,
2021-12-20T19:51:47.699820+00:00 app[web.1]:       _onPendingData: [Function: nop],
2021-12-20T19:51:47.699820+00:00 app[web.1]:       agent: [Agent],
2021-12-20T19:51:47.699820+00:00 app[web.1]:       socketPath: undefined,
2021-12-20T19:51:47.699820+00:00 app[web.1]:       method: 'GET',
2021-12-20T19:51:47.699820+00:00 app[web.1]:       maxHeaderSize: undefined,
2021-12-20T19:51:47.699821+00:00 app[web.1]:       insecureHTTPParser: undefined,
2021-12-20T19:51:47.699826+00:00 app[web.1]:       path: '/[GET]https//file-examples-com.github.io/uploads/2017/10/file_example_JPG_2500kB.jpg',
2021-12-20T19:51:47.699826+00:00 app[web.1]:       _ended: false,
2021-12-20T19:51:47.699826+00:00 app[web.1]:       res: null,
2021-12-20T19:51:47.699827+00:00 app[web.1]:       aborted: false,
2021-12-20T19:51:47.699827+00:00 app[web.1]:       timeoutCb: null,
2021-12-20T19:51:47.699827+00:00 app[web.1]:       upgradeOrConnect: false,
2021-12-20T19:51:47.699828+00:00 app[web.1]:       parser: null,
2021-12-20T19:51:47.699828+00:00 app[web.1]:       maxHeadersCount: null,
2021-12-20T19:51:47.699828+00:00 app[web.1]:       reusedSocket: false,
2021-12-20T19:51:47.699829+00:00 app[web.1]:       host: 'localhost',
2021-12-20T19:51:47.699829+00:00 app[web.1]:       protocol: 'http:',
2021-12-20T19:51:47.699829+00:00 app[web.1]:       _redirectable: [Circular *1],
2021-12-20T19:51:47.699829+00:00 app[web.1]:       [Symbol(kCapture)]: false,
2021-12-20T19:51:47.699830+00:00 app[web.1]:       [Symbol(kNeedDrain)]: false,
2021-12-20T19:51:47.699830+00:00 app[web.1]:       [Symbol(corked)]: 0,
2021-12-20T19:51:47.699830+00:00 app[web.1]:       [Symbol(kOutHeaders)]: [Object: null prototype]
2021-12-20T19:51:47.699831+00:00 app[web.1]:     },
2021-12-20T19:51:47.699831+00:00 app[web.1]:     _currentUrl: 'http:/[GET]https//file-examples-com.github.io/uploads/2017/10/file_example_JPG_2500kB.jpg',
2021-12-20T19:51:47.699831+00:00 app[web.1]:     [Symbol(kCapture)]: false
2021-12-20T19:51:47.699832+00:00 app[web.1]:   },
2021-12-20T19:51:47.699832+00:00 app[web.1]:   response: undefined,
2021-12-20T19:51:47.699832+00:00 app[web.1]:   isAxiosError: true,
2021-12-20T19:51:47.699832+00:00 app[web.1]:   toJSON: [Function: toJSON]
2021-12-20T19:51:47.699833+00:00 app[web.1]: }

i think this is because at app launce i can see that App assumed it is running on local host Port 127.0.0.1
or maybe Heroku may prevent calls to outside which i can't find in the Docs.

App keep crashing at startup

i think the reason is that app should wait before click or navigate as per the explanations in this
also in the docs

here is the log

thanks'

2022-03-03T05:06:25.192175+00:00 heroku[web.1]: Starting process with command `/bin/sh -c PORT\=\11051\ WA_PORT\=\11051\ node\ ./node_modules/@open-wa/wa-automate/bin/server.js\ --use-chrome\ --force-port\=\11051\ --in-docker\ --qr-timeout\ 0`
2022-03-03T05:06:27.304804+00:00 app[web.1]: - session_STARTUP
2022-03-03T05:06:27.309571+00:00 app[web.1]: - DEBUG - PORT: 11051
2022-03-03T05:06:27.310094+00:00 app[web.1]: - DEBUG - flags: {"sessionId":"session","ev":false,"executablePath":"/usr/bin/google-chrome-stable","botPressUrl":"","debug":true,"keepUpdated":true,"port":11051,"popup":true,"keepAlive":false,"disableSpins":true,"socket":"","sessionData":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX","useChrome":true,"forcePort":11051,"inDocker":true,"qrTimeout":0,"noApi":false,"host":"localhost","verbose":false,"ef":["qr","STARTUP","MD_DETECT"],"allowSessionDataWh":false,"generateApiDocs":true,"sessionDataOnly":false,"skipSavePostmanCollection":false,"headful":false,"preAuthDocs":false,"stats":false,"noKillOnLogout":false,"cors":false,"emitUnread":false}
2022-03-03T05:06:27.310692+00:00 app[web.1]: - DEBUG - env vars: {"WA_EV":"false","WA_EXECUTABLE_PATH":"/usr/bin/google-chrome-stable","WA_BOT_PRESS_URL":"","WA_DEBUG":"true","WA_KEEP_UPDATED":"true","WA_PORT":"11051","WA_POPUP":"true","WA_KEEP_ALIVE":"false","WA_DISABLE_SPINS":"true","WA_WEBHOOK":"false","WA_SOCKET":"","WA_SESSION_DATA":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX","WA_USE_CHROME":"true"}
2022-03-03T05:06:27.311073+00:00 app[web.1]: - Launching EASY API
2022-03-03T05:06:27.329570+00:00 app[web.1]: - Selected port is free
2022-03-03T05:06:27.330242+00:00 app[web.1]: - --ev/-e expecting URL - invalid URL.
2022-03-03T05:06:27.330838+00:00 app[web.1]: - Generating Swagger Spec
2022-03-03T05:06:28.076371+00:00 app[web.1]: - Postman collection generated: open-wa-session.postman_collection.json
2022-03-03T05:06:28.182428+00:00 app[web.1]: - API collections (swagger + postman) generated successfully
2022-03-03T05:06:28.664585+00:00 app[web.1]: ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓┃                                                                              ┃┃   @open-wa/wa-automate                                                       ┃┃   💬 🤖 The most reliable NodeJS whatsapp library for chatbots with          ┃┃   advanced features.                                                         ┃┃   Version: 4.31.7                                                            ┃┃   Check out the latest changes:                                              ┃┃   https://github.com/open-wa/wa-automate-nodejs#latest-changes               ┃┃                                                                              ┃┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
2022-03-03T05:06:28.766641+00:00 app[web.1]: You can also authenticate the session at: NA
2022-03-03T05:06:28.767556+00:00 app[web.1]: - Starting
2022-03-03T05:06:28.768363+00:00 app[web.1]: - Version: 4.31.7
2022-03-03T05:06:28.768699+00:00 app[web.1]: - Initializing WA
2022-03-03T05:06:28.771733+00:00 app[web.1]: - Launching Browser
2022-03-03T05:06:29.049156+00:00 app[web.1]: - Browser launched: 277ms
2022-03-03T05:06:29.081094+00:00 app[web.1]: - Setting Up Page
2022-03-03T05:06:29.094136+00:00 app[web.1]: - Loading session data
2022-03-03T05:06:29.098729+00:00 app[web.1]: - No session data file found for session : session
2022-03-03T05:06:29.102409+00:00 app[web.1]: - Existing session data detected. Injecting...
2022-03-03T05:06:29.108173+00:00 app[web.1]: - Existing session data injected
2022-03-03T05:06:29.109818+00:00 app[web.1]: - Pre page launch setup complete: 29ms
2022-03-03T05:06:29.113805+00:00 app[web.1]: - Navigating to WA
2022-03-03T05:06:30.770924+00:00 app[web.1]: - Page loaded in 1656ms: 200
2022-03-03T05:06:30.779061+00:00 app[web.1]: - Page loaded
2022-03-03T05:06:30.836499+00:00 app[web.1]: - Debug info: {
2022-03-03T05:06:30.836513+00:00 app[web.1]:   "WA_VERSION": "2.2206.9",
2022-03-03T05:06:30.836516+00:00 app[web.1]:   "PAGE_UA": "WhatsApp/2.2147.16 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36",
2022-03-03T05:06:30.836516+00:00 app[web.1]:   "WA_AUTOMATE_VERSION": "4.31.7",
2022-03-03T05:06:30.836517+00:00 app[web.1]:   "BROWSER_VERSION": "HeadlessChrome/98.0.4758.102",
2022-03-03T05:06:30.836518+00:00 app[web.1]:   "OS": "Linux 4.4",
2022-03-03T05:06:30.836518+00:00 app[web.1]:   "START_TS": 1646283990792
2022-03-03T05:06:30.836518+00:00 app[web.1]: }
2022-03-03T05:06:31.988759+00:00 app[web.1]: - Use this easy pre-filled link to report an issue: https://github.com/open-wa/wa-automate-nodejs/issues/new?template=bug_report.yaml&d_info=%7B%0A%20%20%22WA_VERSION%22:%20%222.2206.9%22,%0A%20%20%22WA_AUTOMATE_VERSION%22:%20%224.31.7%22,%0A%20%20%22BROWSER_VERSION%22:%20%22HeadlessChrome/98.0.4758.102%22,%0A%20%20%22START_TS%22:%201646283990792,%0A%20%20%22LATEST_VERSION%22:%20true,%0A%20%20%22CLI%22:%20true%0A%7D&enviro=-%20OS:%20Linux%204.4%0A-%20Node:%2017.6.0%0A-%20npm:%208.5.1&labels=CLI,Legacy
2022-03-03T05:06:31.992700+00:00 app[web.1]: - Time to injection: 1213ms
2022-03-03T05:06:31.994432+00:00 app[web.1]: - Injecting api
2022-03-03T05:06:31.995222+00:00 app[web.1]: - Injecting scripts
2022-03-03T05:06:32.051069+00:00 app[web.1]: Error: Execution context was destroyed, most likely because of a navigation.
2022-03-03T05:06:32.051071+00:00 app[web.1]:     at rewriteError (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:265:23)
2022-03-03T05:06:32.051071+00:00 app[web.1]:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-03T05:06:32.051073+00:00 app[web.1]:     at async ExecutionContext._evaluateInternal (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:165:64)
2022-03-03T05:06:32.051073+00:00 app[web.1]:     at async ExecutionContext.evaluate (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
2022-03-03T05:06:32.673575+00:00 app[web.1]: node:events:505
2022-03-03T05:06:32.673582+00:00 app[web.1]:       throw er; // Unhandled 'error' event
2022-03-03T05:06:32.673583+00:00 app[web.1]:       ^
2022-03-03T05:06:32.673583+00:00 app[web.1]: 
2022-03-03T05:06:32.673584+00:00 app[web.1]: Error: spawn ps ENOENT
2022-03-03T05:06:32.673584+00:00 app[web.1]:     at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
2022-03-03T05:06:32.673584+00:00 app[web.1]:     at onErrorNT (node:internal/child_process:476:16)
2022-03-03T05:06:32.673585+00:00 app[web.1]:     at processTicksAndRejections (node:internal/process/task_queues:83:21)
2022-03-03T05:06:32.673585+00:00 app[web.1]: Emitted 'error' event on ChildProcess instance at:
2022-03-03T05:06:32.673585+00:00 app[web.1]:     at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
2022-03-03T05:06:32.673586+00:00 app[web.1]:     at onErrorNT (node:internal/child_process:476:16)
2022-03-03T05:06:32.673586+00:00 app[web.1]:     at processTicksAndRejections (node:internal/process/task_queues:83:21) {
2022-03-03T05:06:32.673586+00:00 app[web.1]:   errno: -2,
2022-03-03T05:06:32.673587+00:00 app[web.1]:   code: 'ENOENT',
2022-03-03T05:06:32.673587+00:00 app[web.1]:   syscall: 'spawn ps',
2022-03-03T05:06:32.673587+00:00 app[web.1]:   path: 'ps',
2022-03-03T05:06:32.673588+00:00 app[web.1]:   spawnargs: [ '-A', '-o', 'ppid,pid,stat,comm' ]
2022-03-03T05:06:32.673588+00:00 app[web.1]: }
2022-03-03T05:06:32.673593+00:00 app[web.1]: 
2022-03-03T05:06:32.673594+00:00 app[web.1]: Node.js v17.6.0
2022-03-03T05:06:32.848098+00:00 heroku[web.1]: Process exited with status 1
2022-03-03T05:06:33.096758+00:00 heroku[web.1]: State changed from starting to crashed
2022-03-03T05:06:33.140588+00:00 heroku[web.1]: State changed from crashed to starting
2022-03-03T05:06:49.250917+00:00 heroku[web.1]: Starting process with command `/bin/sh -c PORT\=\19410\ WA_PORT\=\19410\ node\ ./node_modules/@open-wa/wa-automate/bin/server.js\ --use-chrome\ --force-port\=\19410\ --in-docker\ --qr-timeout\ 0`
2022-03-03T05:06:51.775583+00:00 app[web.1]: - session_STARTUP
2022-03-03T05:06:51.780167+00:00 app[web.1]: - DEBUG - PORT: 19410
2022-03-03T05:06:51.780747+00:00 app[web.1]: - DEBUG - flags: {"sessionId":"session","ev":false,"executablePath":"/usr/bin/google-chrome-stable","botPressUrl":"","debug":true,"keepUpdated":true,"port":19410,"popup":true,"keepAlive":false,"disableSpins":true,"socket":"","sessionData":"eyJXQUJyb3dzZXJJZCI6IlwidXBRblcxbUUwZGh0MDhWYVlaZ1NmUT09XCIiLCJXQVNlY3JldEJ1bmRsZSI6IntcImtleVwiOlwiMUpOZkdIMXp5SnFNYXc2cXNCUjZPNVRPNklyUUdodE5mQk5kdFRhaTNxST1cIixcImVuY0tleVwiOlwiK0gxMitrcjlzVGh0RnRFQ213NkNoQVBBS0h6L2ltWnk3NlBMWmM1b2t4Zz1cIixcIm1hY0tleVwiOlwiMUpOZkdIMXp5SnFNYXc2cXNCUjZPNVRPNklyUUdodE5mQk5kdFRhaTNxST1cIn0iLCJXQVRva2VuMSI6IlwiM3dHZER2Vmw4REVjQXVOcXd2L0xoNVkzSEZKTEtPUFU3dGp6cmpBbjhHTT1cIiIsIldBVG9rZW4yIjoiXCIxQGFGZFNHdi9jbmZJOTZHbWcvUlRnUFUyMENrNW04T0srYktKa1hVQmtLc3k2RlBReVVuNU05RitEQVA3Q3h1R2Y3K0ZEaFdLNW5yNG1udz09XCIifQ==","useChrome":true,"forcePort":19410,"inDocker":true,"qrTimeout":0,"noApi":false,"host":"localhost","verbose":false,"ef":["qr","STARTUP","MD_DETECT"],"allowSessionDataWh":false,"generateApiDocs":true,"sessionDataOnly":false,"skipSavePostmanCollection":false,"headful":false,"preAuthDocs":false,"stats":false,"noKillOnLogout":false,"cors":false,"emitUnread":false}
2022-03-03T05:06:51.781339+00:00 app[web.1]: - DEBUG - env vars: {"WA_EV":"false","WA_EXECUTABLE_PATH":"/usr/bin/google-chrome-stable","WA_BOT_PRESS_URL":"","WA_DEBUG":"true","WA_KEEP_UPDATED":"true","WA_PORT":"19410","WA_POPUP":"true","WA_KEEP_ALIVE":"false","WA_DISABLE_SPINS":"true","WA_WEBHOOK":"false","WA_SOCKET":"","WA_SESSION_DATA":"eyJXQUJyb3dzZXJJZCI6IlwidXBRblcxbUUwZGh0MDhWYVlaZ1NmUT09XCIiLCJXQVNlY3JldEJ1bmRsZSI6IntcImtleVwiOlwiMUpOZkdIMXp5SnFNYXc2cXNCUjZPNVRPNklyUUdodE5mQk5kdFRhaTNxST1cIixcImVuY0tleVwiOlwiK0gxMitrcjlzVGh0RnRFQ213NkNoQVBBS0h6L2ltWnk3NlBMWmM1b2t4Zz1cIixcIm1hY0tleVwiOlwiMUpOZkdIMXp5SnFNYXc2cXNCUjZPNVRPNklyUUdodE5mQk5kdFRhaTNxST1cIn0iLCJXQVRva2VuMSI6IlwiM3dHZER2Vmw4REVjQXVOcXd2L0xoNVkzSEZKTEtPUFU3dGp6cmpBbjhHTT1cIiIsIldBVG9rZW4yIjoiXCIxQGFGZFNHdi9jbmZJOTZHbWcvUlRnUFUyMENrNW04T0srYktKa1hVQmtLc3k2RlBReVVuNU05RitEQVA3Q3h1R2Y3K0ZEaFdLNW5yNG1udz09XCIifQ==","WA_USE_CHROME":"true"}
2022-03-03T05:06:51.781727+00:00 app[web.1]: - Launching EASY API
2022-03-03T05:06:51.806088+00:00 app[web.1]: - Selected port is free
2022-03-03T05:06:51.806800+00:00 app[web.1]: - --ev/-e expecting URL - invalid URL.
2022-03-03T05:06:51.807458+00:00 app[web.1]: - Generating Swagger Spec
2022-03-03T05:06:53.055764+00:00 app[web.1]: ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓┃                                                                              ┃┃   @open-wa/wa-automate                                                       ┃┃   💬 🤖 The most reliable NodeJS whatsapp library for chatbots with          ┃┃   advanced features.                                                         ┃┃   Version: 4.31.7                                                            ┃┃   Check out the latest changes:                                              ┃┃   https://github.com/open-wa/wa-automate-nodejs#latest-changes               ┃┃                                                                              ┃┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
2022-03-03T05:06:53.127761+00:00 app[web.1]: You can also authenticate the session at: NA
2022-03-03T05:06:53.128626+00:00 app[web.1]: - Starting
2022-03-03T05:06:53.129492+00:00 app[web.1]: - Version: 4.31.7
2022-03-03T05:06:53.129940+00:00 app[web.1]: - Initializing WA
2022-03-03T05:06:53.133129+00:00 app[web.1]: - Launching Browser
2022-03-03T05:06:53.299847+00:00 app[web.1]: - Browser launched: 166ms
2022-03-03T05:06:53.736074+00:00 app[web.1]: - Setting Up Page
2022-03-03T05:06:53.741737+00:00 app[web.1]: - Loading session data
2022-03-03T05:06:53.743078+00:00 app[web.1]: - No session data file found for session : session
2022-03-03T05:06:53.746226+00:00 app[web.1]: - Existing session data detected. Injecting...
2022-03-03T05:06:53.754234+00:00 app[web.1]: - Existing session data injected
2022-03-03T05:06:53.754805+00:00 app[web.1]: - Pre page launch setup complete: 19ms
2022-03-03T05:06:53.756923+00:00 app[web.1]: - Navigating to WA
2022-03-03T05:06:52.759331+00:00 app[web.1]: - Postman collection generated: open-wa-session.postman_collection.json
2022-03-03T05:06:52.957323+00:00 app[web.1]: - API collections (swagger + postman) generated successfully
2022-03-03T05:06:55.373583+00:00 app[web.1]: - Page loaded in 1614ms: 200
2022-03-03T05:06:55.373993+00:00 app[web.1]: - Page loaded
2022-03-03T05:06:55.741060+00:00 app[web.1]: - Debug info: {
2022-03-03T05:06:55.741069+00:00 app[web.1]:   "WA_VERSION": "2.2206.9",
2022-03-03T05:06:55.741072+00:00 app[web.1]:   "PAGE_UA": "WhatsApp/2.2147.16 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36",
2022-03-03T05:06:55.741073+00:00 app[web.1]:   "WA_AUTOMATE_VERSION": "4.31.7",
2022-03-03T05:06:55.741073+00:00 app[web.1]:   "BROWSER_VERSION": "HeadlessChrome/98.0.4758.102",
2022-03-03T05:06:55.741074+00:00 app[web.1]:   "OS": "Linux 4.4",
2022-03-03T05:06:55.741074+00:00 app[web.1]:   "START_TS": 1646284015701
2022-03-03T05:06:55.741074+00:00 app[web.1]: }
2022-03-03T05:06:56.868002+00:00 app[web.1]: - Use this easy pre-filled link to report an issue: https://github.com/open-wa/wa-automate-nodejs/issues/new?template=bug_report.yaml&d_info=%7B%0A%20%20%22WA_VERSION%22:%20%222.2206.9%22,%0A%20%20%22WA_AUTOMATE_VERSION%22:%20%224.31.7%22,%0A%20%20%22BROWSER_VERSION%22:%20%22HeadlessChrome/98.0.4758.102%22,%0A%20%20%22START_TS%22:%201646284015701,%0A%20%20%22LATEST_VERSION%22:%20true,%0A%20%20%22CLI%22:%20true%0A%7D&enviro=-%20OS:%20Linux%204.4%0A-%20Node:%2017.6.0%0A-%20npm:%208.5.1&labels=CLI,Legacy
2022-03-03T05:06:56.868479+00:00 app[web.1]: - Time to injection: 1493ms
2022-03-03T05:06:56.888858+00:00 app[web.1]: Error: Execution context was destroyed, most likely because of a navigation.
2022-03-03T05:06:56.888859+00:00 app[web.1]:     at rewriteError (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:265:23)
2022-03-03T05:06:56.888860+00:00 app[web.1]:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-03T05:06:56.888862+00:00 app[web.1]:     at async ExecutionContext._evaluateInternal (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:165:64)
2022-03-03T05:06:56.888863+00:00 app[web.1]:     at async ExecutionContext.evaluate (/usr/src/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
2022-03-03T05:06:56.955786+00:00 app[web.1]: node:events:505
2022-03-03T05:06:56.955788+00:00 app[web.1]:       throw er; // Unhandled 'error' event
2022-03-03T05:06:56.955789+00:00 app[web.1]:       ^
2022-03-03T05:06:56.955789+00:00 app[web.1]: 
2022-03-03T05:06:56.955790+00:00 app[web.1]: Error: spawn ps ENOENT
2022-03-03T05:06:56.955790+00:00 app[web.1]:     at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
2022-03-03T05:06:56.955791+00:00 app[web.1]:     at onErrorNT (node:internal/child_process:476:16)
2022-03-03T05:06:56.955791+00:00 app[web.1]:     at processTicksAndRejections (node:internal/process/task_queues:83:21)
2022-03-03T05:06:56.955791+00:00 app[web.1]: Emitted 'error' event on ChildProcess instance at:
2022-03-03T05:06:56.955792+00:00 app[web.1]:     at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
2022-03-03T05:06:56.955792+00:00 app[web.1]:     at onErrorNT (node:internal/child_process:476:16)
2022-03-03T05:06:56.955792+00:00 app[web.1]:     at processTicksAndRejections (node:internal/process/task_queues:83:21) {
2022-03-03T05:06:56.955793+00:00 app[web.1]:   errno: -2,
2022-03-03T05:06:56.955793+00:00 app[web.1]:   code: 'ENOENT',
2022-03-03T05:06:56.955794+00:00 app[web.1]:   syscall: 'spawn ps',
2022-03-03T05:06:56.955794+00:00 app[web.1]:   path: 'ps',
2022-03-03T05:06:56.955794+00:00 app[web.1]:   spawnargs: [ '-A', '-o', 'ppid,pid,stat,comm' ]
2022-03-03T05:06:56.955794+00:00 app[web.1]: }
2022-03-03T05:06:56.955800+00:00 app[web.1]: 
2022-03-03T05:06:56.955800+00:00 app[web.1]: Node.js v17.6.0
2022-03-03T05:06:57.120907+00:00 heroku[web.1]: Process exited with status 1
2022-03-03T05:06:57.169198+00:00 heroku[web.1]: State changed from starting to crashed

problem scanning the QR code in Heroku Logs

unable to scan the QR code from heroku Logs as the QR code is broken down in a way which can't be scanned
is there any way to make it work in heroku?

thanks

2021-12-19T07:26:45.647507+00:00 app[web.1]: - Injecting api
2021-12-19T07:26:48.085718+00:00 app[web.1]: - WAPI injected
2021-12-19T07:26:48.088265+00:00 app[web.1]: - Authenticating
2021-12-19T07:26:48.280070+00:00 app[web.1]: - Authenticate to continue
2021-12-19T07:26:48.588507+00:00 app[web.1]: ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
2021-12-19T07:26:48.588522+00:00 app[web.1]: █ ▄▄▄▄▄ █▀ ▀ ▀██▄ ▀▀▄ ▄▀▄▄▄ ▀ ▄ ████▀▄█ ▄▄▄▄▄ █
2021-12-19T07:26:48.588522+00:00 app[web.1]: █ █   █ █▄ ▀▄▄███  ▄▄▄▀ █▀█▄███ ██▀█ ▀█ █   █ █
2021-12-19T07:26:48.588523+00:00 app[web.1]: █ █▄▄▄█ █ █ ▀▀ ▀▀█▄█▀ ▄▄▄ █ ▀█  ██ ▄▄▄█ █▄▄▄█ █
2021-12-19T07:26:48.588523+00:00 app[web.1]: █▄▄▄▄▄▄▄█ █ ▀ █ ▀▄█▄█ █▄█ █ █ ▀▄▀ █▄█▄█▄▄▄▄▄▄▄█
2021-12-19T07:26:48.588524+00:00 app[web.1]: █ ▄█▄██▄▄▀▀▀▀▄ ███▀ ▄▄ ▄▄ ██▄▄▄▄█▀▀█▄██▄▄▄█ ▄▀█
2021-12-19T07:26:48.588524+00:00 app[web.1]: █▀▄▄▀▄▄▄▄██ ▀  █▄▄█ ▄▀██▀▄▄ ▄▄▀█▀   ▀▄▀▀▄ ▄▄▄ █
2021-12-19T07:26:48.588524+00:00 app[web.1]: █▄█▄▄▄█▄▀ ▄█▄▄▄▄█ ▄▄ ▀██ ▄▀▄▄ ▄▄▄▄▄▀▄▄ █   █▀ █
2021-12-19T07:26:48.588524+00:00 app[web.1]: █▀▄▀▄▄▀▄▄▄▄▄█ █ ▀▀▄▀▄██▄▀ ██▀█ ▀█ ██▄▄    █▄█▀█
2021-12-19T07:26:48.588525+00:00 app[web.1]: ██ █ ▄▀▄▄ ▀▀▀▀▀ ▄▄▀ ▀ ▀ ▄▄▄ ▄▀ █ ▄▄█ ▄█ ▄█▀▀▀ █
2021-12-19T07:26:48.588525+00:00 app[web.1]: █ █ ▀▀█▄█▄ ▀   ▄  ▄ ▀██▀▄▄███ █ ▀▀█▄█▄▀▄▄█ ▄▄▄█
2021-12-19T07:26:48.588525+00:00 app[web.1]: ███▄▄ ▄▄▄ █ ▄ ▄█▄▄█ ▄ ▄▄▄ ▄█▄▄█▄▄█ ▄█ ▄▄▄ ▄▀█▀█
2021-12-19T07:26:48.588525+00:00 app[web.1]: █▀  █ █▄█ ▄▄▄█▀ ▄█▄▄  █▄█ ▄▄▄█▄▀▄█▄ █ █▄█ ███▄█
2021-12-19T07:26:48.588526+00:00 app[web.1]: █ ██▀ ▄▄▄▄██ ▄ ▄ ▀▄▄▀ ▄▄▄▄▀█▄▄▄█  ▄▀  ▄▄▄ █▀▄▄█
2021-12-19T07:26:48.588526+00:00 app[web.1]: █▄▄▀▄▀ ▄▄▀▄▀▀▄▀█▀█  █ ▀▀██  ▀█▄▄█▀▀▄  ▄▀   ▄▄██
2021-12-19T07:26:48.588526+00:00 app[web.1]: █ ▀ ▄█▀▄▄█▄█▄█▀▄▄▄▄▄▄█▄█▄ █▀▄█▄█▄▄ ▄█▀▄▄██ ▀  █
2021-12-19T07:26:48.588526+00:00 app[web.1]: █████▀ ▄ █ ▀█ ▀▄  █ ▀▄▀██▄▄ ▀█▄▀   ▀██  ▀▀ █ ▄█
2021-12-19T07:26:48.588527+00:00 app[web.1]: █▀ █▀▀▀▄█▄▀▄▄ █▀█▄▄ █▀  ▀██▄▄ █▄████▄▀▄▀█▄███ █
2021-12-19T07:26:48.588527+00:00 app[web.1]: ██▀▀▀ █▄▀█▀▀▀▀█  ███ ▀▄█ ▄▄▀  ██ █▀█▄ ▀▄ ▀ █  █
2021-12-19T07:26:48.588527+00:00 app[web.1]: █▄██▄▄█▄▄▀█ ██▄ █▀▄▄  ▄▄▄ ▀▄ ▄▄▄▄ █ █ ▄▄▄ █████
2021-12-19T07:26:48.588527+00:00 app[web.1]: █ ▄▄▄▄▄ █▄▄█  ▄▄▀▄  █ █▄█ ██▀▄▄██▀ ▀▀ █▄█ ▄▄▄▀█
2021-12-19T07:26:48.588527+00:00 app[web.1]: █ █   █ █▀█▀█▄▄▄█▄▄▄  ▄▄▄ █▀ █ ▄  █▄▄     ▄ █ █
2021-12-19T07:26:48.588528+00:00 app[web.1]: █ █▄▄▄█ █▀▄ ▄ ▀ █▄  ▀▀▄▄▀  ▀▄██ ██ ▀▄▄ ▄ ▄█████
2021-12-19T07:26:48.588528+00:00 app[web.1]: █▄▄▄▄▄▄▄█▄██████▄██▄███▄█▄▄█▄▄█▄▄██████▄▄▄██▄██
2021-12-19T07:26:48.588529+00:00 app[web.1]: 
2021-12-19T07:27:05.283026+00:00 app[web.1]: ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
2021-12-19T07:27:05.283038+00:00 app[web.1]: █ ▄▄▄▄▄ █▀  ▀███▄ ██▄ ▄▀█▄▄ ██ ▄▄███▀▄█ ▄▄▄▄▄ █
2021-12-19T07:27:05.283038+00:00 app[web.1]: █ █   █ █▄▀█▀ ▄▄█ ▀▄▄ ▀ █▄█▄███ ██▀█ ▀█ █   █ █
2021-12-19T07:27:05.283039+00:00 app[web.1]: █ █▄▄▄█ █ ▀▀██ ▀▄▀▄█▀ ▄▄▄ █ ▀█  ██ ▄▄▄█ █▄▄▄█ █
2021-12-19T07:27:05.283039+00:00 app[web.1]: █▄▄▄▄▄▄▄█ █▄█▄█ █ █▄█ █▄█ ▀▄▀ ▀ ▀ ▀▄█▄█▄▄▄▄▄▄▄█
2021-12-19T07:27:05.283039+00:00 app[web.1]: █▄▄▀ ▀█▄▄▀███  ███▀ ▄ ▄ ▄  ▄▄▄█▄█▀███▄█▄  █ ▄▀█
2021-12-19T07:27:05.283040+00:00 app[web.1]: █▀ █▀  ▄ █▄ ▄  ▄▄▄▄▄▄▀█▄▀▄█▀█▄ ▄ ▀ ▀█▀ ▀█▀▄▄  █
2021-12-19T07:27:05.283040+00:00 app[web.1]: █▀▀▀█▀▄▄▀▄ █ ▄ ▄█▀ ▄ ▀▄█▄ ▀▄▄ ▄▄▄▄▄▀▄▄ █   █▀▀█
2021-12-19T07:27:05.283040+00:00 app[web.1]: ██▄▀▄ █▄▄   ▀ █ ▀█▄▀█▄█▄▄ ▀█▀█▄█▀ ▀█▄▄▄   ▄████
2021-12-19T07:27:05.283041+00:00 app[web.1]: █▄ ▀▄█▄▄█▄▀▄▄▀▀ ▄▄▀ ▀ █▄█▄▄▀ █ █ ▄██ █▄▀▄▀ ▀ ▄█
2021-12-19T07:27:05.283041+00:00 app[web.1]: ██  ▄▀▀▄ ▀ █  █     ▀██▀▄▄██▄ █   ▄███ █▄▄ ▄▄▄█
2021-12-19T07:27:05.283041+00:00 app[web.1]: ██▄▄█ ▄▄▄ █▄▀▀█▀██▄ ▄ ▄▄▄ ▄█▄▄█▄▄█ ▄█ ▄▄▄ ▄█▀██
2021-12-19T07:27:05.283041+00:00 app[web.1]: ██▄ ▄ █▄█ ▄▄▄▄▀ ▄▀▄▄  █▄█  ▄▄▀▄█ █▄▄█ █▄█  ██ █
2021-12-19T07:27:05.283042+00:00 app[web.1]: █ ▄▀ ▄▄▄ ▄▄▀ ▄ ▄ ▀▄▄▄   ▄▄▀▄▀▄▀█▄ ▄▀  ▄▄▄ ▄▀▄▄█
2021-12-19T07:27:05.283042+00:00 app[web.1]: █ ███▀▄▄██▄▄▀▄▀▀▀█▄ ██▀▀▀█ ▀▀▄██▄▀▀▄▄█▄▀   ▄▄██
2021-12-19T07:27:05.283042+00:00 app[web.1]: █▀  █ █▄█ ▄  █▀ ██ ▄██▄█▄▄█▀▄█▄█▄▄ ▄██▄ ██ █▄▄█
2021-12-19T07:27:05.283042+00:00 app[web.1]: █ █▀▄▄▀▄▀██▄▄█▀▄▄▀█ ▀▄█ █▄ ▄█▀ █ ▄ ▀██▀ ▀▀▄█▀▄█
2021-12-19T07:27:05.283042+00:00 app[web.1]: █  ▄▄█ ▄ ▀▄█▄ █▀█▄▄ █  ▄▀█▄▄▄▄█▄▄▀ ▄▄▀▄▀█▄▄█▄ █
2021-12-19T07:27:05.283043+00:00 app[web.1]: ██▀▀▀ █▄▀▀▄ ▀▀▀█ ██ ▄█▄█▄█▄▀ ▀██▀▄ ▄▄ ▀▄ ▀ █  █
2021-12-19T07:27:05.283043+00:00 app[web.1]: █▄██▄▄█▄█ █▄██▀ █▀▄▄  ▄▄▄ ▀▄ ▄▄▄▄ █ ▀ ▄▄▄ █▀█▀█
2021-12-19T07:27:05.283043+00:00 app[web.1]: █ ▄▄▄▄▄ █▄█▄▄█▄▄ ▄  █ █▄█ ▀▀█▄▄███ ▀▀ █▄█  █ ██
2021-12-19T07:27:05.283043+00:00 app[web.1]: █ █   █ █▀█▀█▄▄▄█▄▄▄  ▄▄  █ ▄█▄▄█ ▄█▄ ▄ ▄ ▄▀█ █
2021-12-19T07:27:05.283044+00:00 app[web.1]: █ █▄▄▄█ █▀▀▄▄ ▄ █▄███▀▄     ██▄▀▄█▀ ▄▄ ▄▄▄█████
2021-12-19T07:27:05.283044+00:00 app[web.1]: █▄▄▄▄▄▄▄█▄█▄█▄▄█▄▄█▄█████▄▄█▄▄█▄▄█████▄▄█▄██▄██
2021-12-19T07:27:05.283044+00:00 app[web.1]: 
2021-12-19T07:27:24.841520+00:00 app[web.1]: ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
2021-12-19T07:27:24.841527+00:00 app[web.1]: █ ▄▄▄▄▄ █▄▄▄ ▀▀▄▀███▄█▀▄▄█▄█ █  ▄▄ █▀▄█ ▄▄▄▄▄ █
2021-12-19T07:27:24.841530+00:00 app[web.1]: █ █   █ █ █ ▄  █▀ ▀ ▀▄▀  ▄ ▄██ █ █▀█ ▀█ █   █ █
2021-12-19T07:27:24.841530+00:00 app[web.1]: █ █▄▄▄█ █▄█▀▀▄▀▄▄█▄▄  ▄▄▄ ▄▄█▀▀▀▄▀▄▄▄▄█ █▄▄▄█ █
2021-12-19T07:27:24.841530+00:00 app[web.1]: █▄▄▄▄▄▄▄█▄▀ █▄█▄█ █▄▀ █▄█ ▀ ▀ █ █▄█ █▄█▄▄▄▄▄▄▄█
2021-12-19T07:27:24.841533+00:00 app[web.1]: █▄ ▄▄█▀▄█▄▄▀▄ ████▄██▄▄▄ ▄▀██▄▄▀ █▀█   ██▄ ▄▀ █
2021-12-19T07:27:24.841533+00:00 app[web.1]: █  █▀▄ ▄██▀███▄▀  ████▀▀ ███▀ ▀▄ ▄▄▄▀▄ ▄ ▄██▀ █
2021-12-19T07:27:24.841533+00:00 app[web.1]: ███▄▄█▄▄▄▀  ▀█ █ ▄▄  ▄    ▀▀▀█▄▄▄▀▀▄▄▄  ██ █ ██
2021-12-19T07:27:24.841533+00:00 app[web.1]: █   ▄▀█▄▀█ █▀█  ▄▄▀▄ ██▄▄█▄█▀█▀ ▄▄▀▀▀▀█▄ ▄█  ▀█
2021-12-19T07:27:24.841534+00:00 app[web.1]: █▄▀ ▄▄ ▄█ █▄   ▄   ▀█ ▀ █▄▄▄ █▀▄▄ █▀▀██▄ ▀▀ ▄ █
2021-12-19T07:27:24.841534+00:00 app[web.1]: ████ ▄ ▄█▄ ▀█  ███ ▄▀ ▀▄▄▄▄▀ ▄█▀▀█▀   ▀ ▀  ▄█▀█
2021-12-19T07:27:24.841534+00:00 app[web.1]: ████▄ ▄▄▄  █▀▄███▄ █▀ ▄▄▄ ▀█▄▄ ▀▀█ ▄  ▄▄▄ █  ▀█
2021-12-19T07:27:24.841534+00:00 app[web.1]: █▄▀█▄ █▄█  █▄▄ ▄▄ ██▀ █▄█ ▀▄▄▀█ ██  ▄ █▄█ ▀█ ▄█
2021-12-19T07:27:24.841535+00:00 app[web.1]: ██ ▀ ▄▄▄▄  █ ▄ ▀█▄▄▄█▄▄▄▄▄▄ ███▄ ▀ ▄  ▄  ▄█ ▄ █
2021-12-19T07:27:24.841535+00:00 app[web.1]: █▀ ▀▄ ▄▄▀▄▄█▄▀▀█▀█▄█▄ ▀▀▀▀█ ▀█  ▀▀ ██▄▀▀  █▀▀██
2021-12-19T07:27:24.841535+00:00 app[web.1]: █▀███▄ ▄▀█▄ █▄▄▄▀ ▀█▄▀ ▀▄ ▄█ ▀█▄█ ▄ ▄ ██▀▀▀ ▀ █
2021-12-19T07:27:24.841535+00:00 app[web.1]: █ ▀▀▀█ ▄▀▄▄█ ▄▀▀▄▀█ ▀▀▀ █▄▄▀   █ █▀▄▄█▄▀█▀██▄██
2021-12-19T07:27:24.841536+00:00 app[web.1]: █▄ █▀▄▄▄▄▄█ ▀█ ▀█▄▀█▄▀▄ ▄ ▄█▄    █▀█▀▄▀▀█▄▀▀ ▀█
2021-12-19T07:27:24.841536+00:00 app[web.1]: ██▀▀▀ █▄▀  █  ▄▄▄▀ ▀█▀ ▀▀███████▀▀█ ▀▀  ▄█▀▄▀▄█
2021-12-19T07:27:24.841536+00:00 app[web.1]: █▄██▄▄█▄█▀▄███▄█▀█  ▀ ▄▄▄ ▀▀█▀▄▄▄█ █▀ ▄▄▄ ▀▀█▄█
2021-12-19T07:27:24.841536+00:00 app[web.1]: █ ▄▄▄▄▄ ███ ▀▀▀▄ ▄██  █▄█ ▄▀█ █▄▄▀ ▀▀ █▄█  ▀▀▀█
2021-12-19T07:27:24.841537+00:00 app[web.1]: █ █   █ █▀██▄██ ▀ ██▀▄    ▄█ █ █ ▄  █ ▄▄ ▄▄▀▄▄█
2021-12-19T07:27:24.841537+00:00 app[web.1]: █ █▄▄▄█ █ ▄▀▄ ▄█ ▀▄▄▀▄██▀ ▀▄ ▀▄ ▄▀█▄▄▄▀ ▄████ █
2021-12-19T07:27:24.841537+00:00 app[web.1]: █▄▄▄▄▄▄▄█▄▄▄█▄██▄█▄█▄█▄▄▄███▄▄▄█████▄▄▄▄▄▄▄▄███
2021-12-19T07:27:24.841537+00:00 app[web.1]: 
2021-12-19T07:27:38.559563+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2021-12-19T07:27:38.666694+00:00 heroku[web.1]: Stopping process with SIGKILL
2021-12-19T07:27:38.831067+00:00 heroku[web.1]: Process exited with status 137
2021-12-19T07:27:39.058128+00:00 heroku[web.1]: State changed from starting to crashed

API key not enforced

regardless of setting the API Key in environment variable at creation time the API starts without requiring the call to includes it in the header

below is the start log for from heroku

Starting process with command `/bin/sh -c node\ ./node_modules/@open-wa/wa-automate/bin/server.js\ --use-chrome\ \ --in-docker\ --qr-timeout\ 0\ --popup`
2021-12-19T19:59:19.945055+00:00 app[web.1]: Unable to read config file json: node ./node_modules/@open-wa/wa-automate/bin/server.js --use-chrome  --in-docker --qr-timeout 0 --popup
2021-12-19T19:59:19.947867+00:00 app[web.1]: - session_STARTUP
2021-12-19T19:59:19.948824+00:00 app[web.1]: - DEBUG - flags: {"sessionId":"session","useChrome":true,"socket":true,"sessionData":"<<removed>>","popup":true,"keepUpdated":false,"keepAlive":true,"ev":false,"disableSpins":true,"debug":true,"botPressUrl":"","inDocker":true,"port":47372,"qrTimeout":0,"config":"node ./node_modules/@open-wa/wa-automate/bin/server.js --use-chrome  --in-docker --qr-timeout 0 --popup","noApi":false,"host":"localhost","ef":["qr","STARTUP"],"allowSessionDataWh":false,"generateApiDocs":true,"sessionDataOnly":false,"skipSavePostmanCollection":false,"stats":false,"preAuthDocs":false,"noKillOnLogout":false,"cors":false,"emitUnread":false}
2021-12-19T19:59:19.949139+00:00 app[web.1]: - DEBUG - env vars: {"WA_WEBHOOK":"false","WA_USE_CHROME":"true","WA_SOCKET":"true","WA_SESSION_DATA":"<<removed>>","WA_POPUP":"true","WA_KEEP_UPDATED":"false","WA_KEEP_ALIVE":"true","WA_EV":"false","WA_DISABLE_SPINS":"true","WA_DEBUG":"true","WA_BOT_PRESS_URL":""}
2021-12-19T19:59:19.949238+00:00 app[web.1]: - Launching EASY API
2021-12-19T19:59:19.969163+00:00 app[web.1]: - Selected port is free
2021-12-19T19:59:19.969347+00:00 app[web.1]: - --ev/-e expecting URL - invalid URL.
2021-12-19T19:59:19.986396+00:00 app[web.1]: - Generating Swagger Spec
2021-12-19T19:59:20.717567+00:00 app[web.1]: - Postman collection generated: open-wa-session.postman_collection.json
2021-12-19T19:59:21.095676+00:00 app[web.1]: - API collections (swagger + postman) generated successfully
2021-12-19T19:59:21.233437+00:00 app[web.1]: ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓┃                                                                              ┃┃   @open-wa/wa-automate                                                       ┃┃   💬 🤖 The most reliable NodeJS whatsapp library for chatbots with          ┃┃   advanced features.                                                         ┃┃   Version: 4.27.4                                                            ┃┃   Check out the latest changes:                                              ┃┃   https://github.com/open-wa/wa-automate-nodejs#latest-changes               ┃┃                                                                              ┃┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
2021-12-19T19:59:21.315420+00:00 app[web.1]: You can also authenticate the session at: NA
2021-12-19T19:59:21.315896+00:00 app[web.1]: - Starting
2021-12-19T19:59:21.316401+00:00 app[web.1]: - Version: 4.27.4
2021-12-19T19:59:21.316475+00:00 app[web.1]: - Initializing WA
2021-12-19T19:59:21.317429+00:00 app[web.1]: - Launching Browser
2021-12-19T19:59:22.225772+00:00 app[web.1]: - Setting Up Page
2021-12-19T19:59:22.234042+00:00 app[web.1]: - Loading session data
2021-12-19T19:59:22.234920+00:00 app[web.1]: - No session data file found for session : session
2021-12-19T19:59:22.235018+00:00 app[web.1]: - Existing session data detected. Injecting...
2021-12-19T19:59:22.236609+00:00 app[web.1]: - Existing session data injected
2021-12-19T19:59:22.236833+00:00 app[web.1]: - Navigating to WA
2021-12-19T19:59:23.158064+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 30 seconds of SIGTERM
2021-12-19T19:59:23.216067+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2021-12-19T19:59:23.391182+00:00 heroku[web.1]: Process exited with status 137
2021-12-19T19:59:23.438163+00:00 app[web.1]: - Page loaded in 1201ms: 200
2021-12-19T19:59:23.438540+00:00 app[web.1]: - Browser Launched
2021-12-19T19:59:24.119290+00:00 app[web.1]: - Debug info: {
2021-12-19T19:59:24.119296+00:00 app[web.1]:   "WA_VERSION": "2.2147.16",
2021-12-19T19:59:24.119299+00:00 app[web.1]:   "PAGE_UA": "WhatsApp/2.2144.11 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36",
2021-12-19T19:59:24.119300+00:00 app[web.1]:   "WA_AUTOMATE_VERSION": "4.27.4",
2021-12-19T19:59:24.119300+00:00 app[web.1]:   "BROWSER_VERSION": "HeadlessChrome/96.0.4664.110",
2021-12-19T19:59:24.119301+00:00 app[web.1]:   "OS": "Linux 4.4",
2021-12-19T19:59:24.119301+00:00 app[web.1]:   "START_TS": 1639943963441
2021-12-19T19:59:24.119302+00:00 app[web.1]: }
2021-12-19T19:59:24.119796+00:00 app[web.1]: - Use this easy pre-filled link to report an issue: https://github.com/open-wa/wa-automate-nodejs/issues/new?template=bug_report.yaml&debug_info=%7B%0A%20%20%22WA_VERSION%22:%20%222.2147.16%22,%0A%20%20%22WA_AUTOMATE_VERSION%22:%20%224.27.4%22,%0A%20%20%22BROWSER_VERSION%22:%20%22HeadlessChrome/96.0.4664.110%22,%0A%20%20%22START_TS%22:%201639943963441%0A%7D&environment=-%20OS:%20Linux%204.4%0A-%20Node:%2017.2.0%0A-%20npm:%20%0A
2021-12-19T19:59:24.134953+00:00 app[web.1]: - Injecting api
2021-12-19T19:59:25.349402+00:00 app[web.1]: - WAPI injected
2021-12-19T19:59:25.349530+00:00 app[web.1]: - Authenticating
2021-12-19T19:59:27.346407+00:00 app[web.1]: - Authenticated
2021-12-19T19:59:27.363095+00:00 app[web.1]: - Reinjecting api
2021-12-19T19:59:31.296245+00:00 app[web.1]: - WAPI Reinjected
2021-12-19T19:59:31.297123+00:00 app[web.1]: - Checking if session is valid
2021-12-19T19:59:31.493798+00:00 app[web.1]: - Downloading patches from https://cdn.openwa.dev/patches.json
2021-12-19T19:59:32.171313+00:00 app[web.1]: - Client is ready
2021-12-19T19:59:32.322819+00:00 app[web.1]: - Generating patch hash
2021-12-19T19:59:32.327949+00:00 app[web.1]: - Downloaded patches in 0.828s
2021-12-19T19:59:32.328313+00:00 app[web.1]: - Installing patches
2021-12-19T19:59:33.217233+00:00 app[web.1]: - Patches Installed: cc8ed
2021-12-19T19:59:34.118081+00:00 app[web.1]: - Client loaded for normal account with 242 contacts, 61 chats & 94 messages in 12.989s
2021-12-19T19:59:34.412345+00:00 app[web.1]: - Finalizing web session...
2021-12-19T19:59:34.564086+00:00 app[web.1]: - Finalizing client...
2021-12-19T19:59:35.340454+00:00 app[web.1]: - 🚀 @OPEN-WA ready for account: 8119
2021-12-19T19:59:35.341587+00:00 app[web.1]: - session_STARTUP
2021-12-19T19:59:35.341760+00:00 app[web.1]: - Setting Up API Explorer
2021-12-19T19:59:35.350009+00:00 app[web.1]: - API Explorer set up successfully
2021-12-19T19:59:35.350362+00:00 app[web.1]: - Setting up socket
2021-12-19T19:59:35.351752+00:00 app[web.1]: - Socket ready for connection
2021-12-19T19:59:35.351798+00:00 app[web.1]: - ...waiting for port 47372 to be free
2021-12-19T19:59:35.354357+00:00 app[web.1]: - Port 47372 is now free.
2021-12-19T19:59:35.354616+00:00 app[web.1]: - 
2021-12-19T19:59:35.354617+00:00 app[web.1]: 	API Explorer (​http://localhost:47372/api-docs/ ​)
2021-12-19T19:59:35.354968+00:00 app[web.1]: - 
2021-12-19T19:59:35.354968+00:00 app[web.1]: • Listening on port 47372!
2021-12-19T19:59:35.660320+00:00 heroku[web.1]: State changed from starting to up

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.