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

After updating to NR V3.0.2 Nbrowser fails even after reinstallation #38

Open bwims opened 1 year ago

bwims commented 1 year ago

Hi,

I recently uninstalled and reinstalled Node Red moving from 3.0.1 to 3.0.2 ( I wanted a clean installation for reasons not pertinent to this)

I then added all the modules I had before, including Nbrowser.

However, Nbrowser no longer works. It always fails with an unexplained error of "object" and Electron is created with a blank screen which hangs.

It's as though the msg.payload string is not getting through.

Here is the error:

image

The simple test code works perfectly on a 3.0.0. system that I have on another pc, and also worked on the previous 3.0.1 version but fails now.

It just spawns a browser running Google.

image

I include the installation log at the end.

I know this isn't under active development, but this is a real blow. Any advice would be greatly appreciated!

B.

[
    {
        "id": "daf2e48d7fdb6899",
        "type": "nbrowser",
        "z": "90493cdc196d9167",
        "name": "",
        "methods": [
            {
                "name": "gotoURL",
                "func": "goto",
                "params": [
                    {
                        "type": "msg",
                        "value": "payload",
                        "typeDefault": "str"
                    }
                ]
            }
        ],
        "prop": "nbrowser",
        "propout": "payload",
        "object": "msg",
        "objectout": "msg",
        "close": false,
        "show": true,
        "ssl": false,
        "outputs": 1,
        "x": 780,
        "y": 180,
        "wires": [
            []
        ]
    },
    {
        "id": "1ecab98976a91509",
        "type": "inject",
        "z": "90493cdc196d9167",
        "name": "https://www.google.co.uk/",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "https://www.google.co.uk/",
        "payloadType": "str",
        "x": 490,
        "y": 180,
        "wires": [
            [
                "daf2e48d7fdb6899"
            ]
        ]
    }
]
C:\Users\williams_b\.node-red>npm install node-red-contrib-nbrowser
npm WARN deprecated electron-download@3.3.0: Please use @electron/get moving forward.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated deep-defaults@1.0.5: not actively maintained; find alternatives
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

added 146 packages, and audited 313 packages in 10s
bwims commented 1 year ago

Hi, I know you aren't actively working on this, but if the solution is simple, I'd be really really grateful!

B.