omkarcloud / google-maps-scraper

👋 HOLA 👋 HOLA 👋 HOLA ! ENJOY OUR GOOGLE MAPS SCRAPER 🚀 TO EFFORTLESSLY EXTRACT DATA SUCH AS NAMES, ADDRESSES, PHONE NUMBERS, REVIEWS, WEBSITES, AND RATINGS FROM GOOGLE MAPS WITH EASE! 🤖
https://www.omkar.cloud/
MIT License
1.11k stars 265 forks source link

TypeError: section.select(...).text(...).greaterThanOrEqualToOne is not a function\n #183

Closed Arcadiyyyyyyyy closed 1 month ago

Arcadiyyyyyyyy commented 3 months ago

Hi! Relaunched container today, got unexpected error while clicking "Run" in the interface. On previous versions, everything worked great.

image

Full log:

docker logs -f 397a6ec3a512 Starting frontend server at http://localhost:3000/ Bottle v0.12.25 server starting up (using WSGIRefServer())... Listening on http://127.0.0.1:8000/ Hit Ctrl-C to quit.

added 12 packages, and audited 13 packages in 3s

found 0 vulnerabilities Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/bottle.py", line 876, in _handle return route.call(*args) File "/usr/local/lib/python3.9/site-packages/bottle.py", line 1759, in wrapper rv = callback(a, **ka) File "/usr/local/lib/python3.9/site-packages/botasaurus_server/task_routes.py", line 333, in submit_async_task result = create_async_task(validate_task_request(request.json)) File "/usr/local/lib/python3.9/site-packages/botasaurus_server/task_routes.py", line 130, in validate_task_request controls = Server.get_controls(scraper_name) File "/usr/local/lib/python3.9/site-packages/botasaurus_server/server.py", line 89, in get_controls self.update_cache(scraper_name) File "/usr/local/lib/python3.9/site-packages/botasaurus_server/server.py", line 104, in update_cache "controls": self.create_controls(input_js), File "/usr/local/lib/python3.9/site-packages/botasaurus_server/server.py", line 86, in create_controls return ControlsAdapter.createControls(input_js) File "/usr/local/lib/python3.9/site-packages/botasaurus_server/controls_adapter.py", line 16, in createControls return get_botasaurus_controls().createControls(input_js, timeout=300) File "/usr/local/lib/python3.9/site-packages/javascript_fixes/proxy.py", line 218, in call else self._exe.callProp( File "/usr/local/lib/python3.9/site-packages/javascript_fixes/proxy.py", line 158, in callProp resp = self.pcall(ffid, "call", method, args, timeout=timeout, forceRefs=forceRefs) File "/usr/local/lib/python3.9/site-packages/javascript_fixes/proxy.py", line 146, in pcall raise JavaScriptError(attr, res["error"]) javascript_fixes.errors.JavaScriptError: ('createControls', 'TypeError: section.select(...).text(...).greaterThanOrEqualToOne is not a function\n at eval (eval at createControls (/usr/local/lib/python3.9/site-packages/javascript_fixes/js/node_modules/botasaurus-controls/dist/index.js:1:21791), :32:18)\n at Controls.section (/usr/local/lib/python3.9/site-packages/javascript_fixes/js/node_modules/botasaurus-controls/dist/index.js:1:16723)\n at getInput (eval at createControls (/usr/local/lib/python3.9/site-packages/javascript_fixes/js/node_modules/botasaurus-controls/dist/index.js:1:21791), :22:10)\n at eval (eval at createControls (/usr/local/lib/python3.9/site-packages/javascript_fixes/js/node_modules/botasaurus-controls/dist/index.js:1:21791), :86:9)\n at Object.createControls (/usr/local/lib/python3.9/site-packages/javascript_fixes/js/node_modules/botasaurus-controls/dist/index.js:1:21849)\n at Bridge.call (/usr/local/lib/python3.9/site-packages/javascript_fixes/js/bridge.js:136:42)\n at Bridge.onMessage (/usr/local/lib/python3.9/site-packages/javascript_fixes/js/bridge.js:231:25)\n at Socket. (/usr/local/lib/python3.9/site-packages/javascript_fixes/js/bridge.js:292:18)\n at Socket.emit (node:events:517:28)\n at addChunk (node:internal/streams/readable:368:12)') 127.0.0.1 - - [23/Jun/2024 12:49:12] "POST /api/tasks/create-task-async HTTP/1.1" 500 774

Chetan11-dev commented 3 months ago

Kindly update it to the latest version.

To update the Free Version, run these commands in the root directory:

git pull
python -m pip install --upgrade bota botasaurus botasaurus-api botasaurus-requests botasaurus-driver botasaurus-proxy-authentication botasaurus-server

To update the Pro Version, run these commands:

python -m pip install --upgrade bota botasaurus botasaurus-api botasaurus-requests botasaurus-driver botasaurus-proxy-authentication botasaurus-server

And then, please refollow the instructions which were sent to your GitHub email address when you purchased it.

instructions.png