Steveorevo / node-red-contrib-nbrowser

Provides a virtual web browser (a.k.a. "headless browser") appearing as a node.
35 stars 13 forks source link

Node-Red crashes getting TypeError:Cannot read property of undefined at nbrowser.js 367:19 #24

Closed Gippsman2017 closed 5 years ago

Gippsman2017 commented 5 years ago

Hi, I am getting Getting TypeError:Cannot read property of undefined at nbrowser.js 367:19 and it bombs out node-red completely. I have installed nbrowser with no errors, xvfb-run is installed, as is nightmare and electron. I have tested both it running on both debian stretch and redhat 7.6 and both give the same error. Using xvfb-run --listen-tcp wget https://www.google.com.au returns the index file correctly. However, running the example in nightmare returns nothing and it completely failes in the make file. So, exactly where to test next is a little elusive, can you please point me in the right direction to help this issue. Many thanks.

Steveorevo commented 5 years ago

May want to post in nightmarejs. Are there any other errors or info running the example in nightmare. A make error tells us that you maybe missing additional dependencies needed to have nightmare functional.

Did you follow the items mentioned in https://github.com/Steveorevo/node-red-contrib-nbrowser/issues/17 ?

Gippsman2017 commented 5 years ago

Yep, thanks finally tracked it down it was a multitude of container config problems and libraries (RPM's) missing, there are just so many possible issues you must have to contend with to fault find this app although once I learned how electron and nightmare work under the covers it was easier, ...great app though !!