These are chat archives for rosshinkley/nightmare

25th
Oct 2016
zypjerry
@zypjerry
Oct 25 2016 05:48
hello
From Waseda.Univer
i am a jp and a new guy in nightmare.
how to get the new page html after the click. thx
Selwyn
@Siilwyn
Oct 25 2016 19:59
@zypjerry as much as I'd like to help you I don't understand your question at all. :/

Good evening folks, didn't want to post this really specifically strange & vague issue here but I can't find any cause. Checked the debug logs and all.
So if you do the following in nightmare it completely freezes, even the dev tools:
open the website: 'http://jukebox.today/' > fill in a room name and click create > the freeze causing page will open

To quickly open up the page :)

const Nightmare = require('nightmare');
const nightmare = Nightmare({show: true});

nightmare
  .goto('http://jukebox.today/')
  .then(function () {
    console.log('page loaded');
  })
  .catch(function (error) {
    console.error(error);
  })
Selwyn
@Siilwyn
Oct 25 2016 20:12
Could anybody confirm this or suggest things I could try out?
Selwyn
@Siilwyn
Oct 25 2016 20:18
Running on Linux, latest Nightmare version. Tried in combination with Node 4 & 6.
Selwyn
@Siilwyn
Oct 25 2016 20:49

As it worked before I went back version by version until it works...
So the last working version is 2.4.1 then the versions 2.5.x have the following error:

    TypeError: Converting circular structure to JSON
        at process.target._send (internal/child_process.js:626:23)
        at process.target.send (internal/child_process.js:538:19)
        at EventEmitter.IPC.emitter.emit [as emit] (/home/selwyn/codeground/jukes/node_modules/nightmare/lib/ipc.js:54:15)
        at WebContents.<anonymous> (/home/selwyn/codeground/jukes/node_modules/nightmare/lib/runner.js:598:17)
        at emitMany (events.js:132:20)
        at WebContents.emit (events.js:201:7)

And up from version 2.6.0 it has the issue I described above of freezing the whole process.