platonai / PulsarRPA

Automate webpages at scale, scrape web data completely and accurately with high performance, distributed AI-RPA.
Apache License 2.0
778 stars 118 forks source link

TypeError: document.body.HMNvqKforEach is not a function #11

Closed galaxyeye closed 1 year ago

galaxyeye commented 2 years ago

When run exotic-standalone on WSL, we see:

2022-05-20 15:51:31.107 INFO [r-worker-4] a.p.p.p.b.d.c.ChromeDevtoolsDriver - TypeError: document.body.HMNvqKforEach is not a function at Function.HMNvqKutils.updatePulsarStat (:300:23) at Function.HMNvqKutils.isActuallyReady (:237:19) at Function.HMNvqKutils.checkPulsarStatus (:178:31) at Function.HMNvqKutils.waitForReady (:151:26) at :1:15

We thought it's caused by the js resources are loaded twice and the scriptNameCipher might be calculated twice for some reason:

2022-05-20 15:48:05.973 INFO [r-worker-1] a.p.p.c.ResourceLoader - Find resource js/pulsar_utils.js | jar:file:/home/vincent/workspace/exotic-standalone.jar!/BOOT-INF/lib/pulsar-browser-1.9.6.jar!/js/pulsar_utils.js 2022-05-20 15:48:05.973 INFO [r-worker-2] a.p.p.c.ResourceLoader - Find resource js/pulsar_utils.js | jar:file:/home/vincent/workspace/exotic-standalone.jar!/BOOT-INF/lib/pulsar-browser-1.9.6.jar!/js/pulsar_utils.js

I suggest that make sure the js resources are loaded only once and make sure the scriptNameCipher be unique in process scope.

platonai commented 1 year ago

Fixed.