schickling/chromeless

socket hang up

imzisy opened this issue · 0 comments

This is a (Bug Report)

My code is :

const { Chromeless } = require('chromeless')
async function run() {
  const chromeless = new Chromeless()
  const screenshot = await chromeless
    .goto('https://www.google.com')
    .type('chromeless', 'input[name="q"]')
    .press(13)
    .wait('#resultStats')
    .screenshot()
  console.log(screenshot) // prints local file path or S3 url
  await chromeless.end()
}
run().catch(console.error.bind(console))
  • Chromeless Version you're using: 1.5.0
  • Operating System: mac capitin
  • Stack Trace: Node
  • Node Version you're using: 8.9.1
  • Error messages:

{ Error: socket hang up
at createHangUpError (_http_client.js:331:15)
at Socket.socketCloseListener (_http_client.js:363:23)
at emitOne (events.js:121:20)
at Socket.emit (events.js:211:7)
at TCP._handle.close [as _onclose] (net.js:554:12) code: 'ECONNRESET' }

I'm not sure weather this problem related to chromeless or something wrong with my os