Port scan timeout reached, no open HTTP ports detected. If you don't need to receive public HTTP traffic, create a private service instead

I am trying to deploy an api that uses puppeteer to scrape data from a public website. I have defined an environment variable namely PORT and set it to 3000. I don’t have any issues running puppeteer itself just that after deployment I am still unable to get any open http ports on 0.0.0.0.

Before my free instance went into inactivity, I was able to deploy the same program and host it on the web without issues but after the inactivity I seem to not be able to pass through this time out issue. These are my most recent logs below:
Server is running on http://localhost:3000

Jul 25 03:08:55 PM==> Deploying…

Jul 25 03:09:25 PMServer is running on http://localhost:3000

Jul 25 03:09:26 PM==> Your service is live :tada:

Jul 25 03:09:57 PM==> No open HTTP ports detected on 0.0.0.0, continuing to scan…

Jul 25 03:10:59 PM==> No open HTTP ports detected on 0.0.0.0, continuing to scan…

Jul 25 03:12:01 PM==> No open HTTP ports detected on 0.0.0.0, continuing to scan…

Jul 25 03:13:03 PM==> No open HTTP ports detected on 0.0.0.0, continuing to scan…

Jul 25 03:13:21 PM/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:147

Jul 25 03:13:21 PM throw new Errors_js_1.TimeoutError(error.message);

Jul 25 03:13:21 PM ^

Jul 25 03:13:21 PM

Jul 25 03:13:26 PMServer is running on http://localhost:3000

Jul 25 03:13:21 PMTimeoutError: Timed out after 60000 ms while waiting for the WS endpoint URL to appear in stdout!

Jul 25 03:13:21 PM at ChromeLauncher.launch (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:147:23)

Jul 25 03:13:21 PM at runNextTicks (node:internal/process/task_queues:60:5)

Jul 25 03:13:21 PM at listOnTimeout (node:internal/timers:540:9)

Jul 25 03:13:21 PM at process.processTimers (node:internal/timers:514:7)

Jul 25 03:13:21 PM at async /usr/src/app/index.js:13:21

Jul 25 03:13:21 PM

Jul 25 03:13:21 PMNode.js v20.9.0

Jul 25 03:14:04 PM==> No open HTTP ports detected on 0.0.0.0, continuing to scan…

Jul 25 03:14:08 PMError occurred: Error: Navigating frame was detached

Jul 25 03:14:08 PM at #onFrameDetached (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/LifecycleWatcher.js:100:47)

Jul 25 03:14:08 PM at /usr/src/app/node_modules/puppeteer-core/lib/cjs/third_party/mitt/mitt.js:62:7

Jul 25 03:14:08 PM at Array.map ()

Jul 25 03:14:08 PM at Object.emit (/usr/src/app/node_modules/puppeteer-core/lib/cjs/third_party/mitt/mitt.js:61:20)

Jul 25 03:14:08 PM at CdpFrame.emit (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js:83:23)

Jul 25 03:14:08 PM at #removeFramesRecursively (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FrameManager.js:450:15)

Jul 25 03:14:08 PM at #onClientDisconnect (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/FrameManager.js:94:42)

Jul 25 03:14:14 PM/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:72

Jul 25 03:14:14 PM this._reject(callback, new Errors_js_1.TargetCloseError(‘Target closed’));

Jul 25 03:14:14 PM ^

Jul 25 03:14:14 PM

Jul 25 03:14:14 PMTargetCloseError: Protocol error (Target.setAutoAttach): Target closed

Jul 25 03:14:14 PM at CallbackRegistry.clear (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:72:36)

Jul 25 03:14:14 PM at #onClose (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:164:25)

Jul 25 03:14:14 PM at WebSocket. (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js:49:30)

Jul 25 03:14:14 PM at callListener (/usr/src/app/node_modules/ws/lib/event-target.js:290:14)

Jul 25 03:14:14 PM at WebSocket.onClose (/usr/src/app/node_modules/ws/lib/event-target.js:220:9)

Jul 25 03:14:14 PM at WebSocket.emit (node:events:514:28)

Jul 25 03:14:14 PM at WebSocket.emitClose (/usr/src/app/node_modules/ws/lib/websocket.js:272:10)

Jul 25 03:14:14 PM at Socket.socketOnClose (/usr/src/app/node_modules/ws/lib/websocket.js:1341:15)

Jul 25 03:14:14 PM at Socket.emit (node:events:514:28)

Jul 25 03:14:14 PM at TCP. (node:net:337:12) {

Jul 25 03:14:14 PM cause: ProtocolError

Jul 25 03:14:14 PM at <instance_members_initializer> (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:93:14)

Jul 25 03:14:14 PM at new Callback (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:97:16)

Jul 25 03:14:14 PM at CallbackRegistry.create (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:22:26)

Jul 25 03:14:14 PM at Connection._rawSend (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:89:26)

Jul 25 03:14:14 PM at Connection.send (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:80:21)

Jul 25 03:14:14 PM at ChromeTargetManager.initialize (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ChromeTargetManager.js:96:32)

Jul 25 03:14:14 PM at async CdpBrowser._attach (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js:72:9)

Jul 25 03:14:14 PM at async CdpBrowser._create (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js:27:9)

Jul 25 03:14:14 PM at async ChromeLauncher.launch (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:140:31)

Jul 25 03:14:14 PM at async /usr/src/app/index.js:13:21

Jul 25 03:14:14 PM}

Jul 25 03:14:14 PM

Jul 25 03:14:14 PMNode.js v20.9.0

Jul 25 03:15:06 PM==> No open HTTP ports detected on 0.0.0.0, continuing to scan…

Jul 25 03:16:07 PM==> No open HTTP ports detected on 0.0.0.0, continuing to scan…

Jul 25 03:17:08 PM==> No open HTTP ports detected on 0.0.0.0, continuing to scan…

Jul 25 03:18:09 PM==> No open HTTP ports detected on 0.0.0.0, continuing to scan…

Jul 25 03:19:10 PM==> No open HTTP ports detected on 0.0.0.0, continuing to scan…

Jul 25 03:19:15 PM==> Port scan timeout reached, no open HTTP ports detected. If you don’t need to receive public HTTP traffic, create a private service instead.

How can I fix this issue. Any assistance is highly appreciated.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.