These are chat archives for rosshinkley/nightmare

18th
May 2016
Maxwell Zhao
@thepiercingarrow
May 18 2016 01:38
@rickmed If you ever get openshift working, could you please tell me how? I've been trying for a month and I'm just super-confused... Main reason I'm still using heroku
Rick Medina
@rickmed
May 18 2016 02:16
@thepiercingarrow2 not using openshift man...
James Tindall
@atomless
May 18 2016 15:05
Hi - has anyone had an issue with nightmare/electron quiting when calling nightmare.refresh() ??
Ross Hinkley
@rosshinkley
May 18 2016 16:43
@atomless do you have a minimum repro?
Ross Hinkley
@rosshinkley
May 18 2016 16:48
also, apologies to all: i've been away for a bit, and will be reviewing issues/prs today
James Tindall
@atomless
May 18 2016 17:14
@rosshinkley - it's a tricky one - I don't see the issue locally but when run via an automated Jenkins build, a simple call to refresh like so nightmare.refresh() seemingly causes electron to quit/crash. I see the flicker of a white page I normally see with a page refresh and then electron just silently dies.
Ross Hinkley
@rosshinkley
May 18 2016 17:17
have you tried running it with DEBUG?
and possibly with the Electron stack flags
James Tindall
@atomless
May 18 2016 17:24
Not yet, no - will look into those thanks!
Ross Hinkley
@rosshinkley
May 18 2016 17:24
no problem, let me know how it turns out :)
James Tindall
@atomless
May 18 2016 17:25
Interestingly I did manage to avoid the issue by using evaluate to get the current url and then calling goto(current_url) instead of calling refresh and it works fine, no crash.
Ross Hinkley
@rosshinkley
May 18 2016 17:26
that strikes me as suspect
James Tindall
@atomless
May 18 2016 17:26
indeed
Ross Hinkley
@rosshinkley
May 18 2016 17:26
i'm pretty sure .refresh() evaluates down to a window.location.reload() or something similar
James Tindall
@atomless
May 18 2016 17:27
yes, sounds likely
Ross Hinkley
@rosshinkley
May 18 2016 17:27
you say it works locally?