Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot read properties of null (reading 'scrollHeight') #56

Open
asadMarmash opened this issue Jun 11, 2024 · 3 comments
Open

Error: Cannot read properties of null (reading 'scrollHeight') #56

asadMarmash opened this issue Jun 11, 2024 · 3 comments

Comments

@asadMarmash
Copy link

asadMarmash commented Jun 11, 2024

Executing the example command provided in the documentation ./google-maps-scraper -input example-queries.txt -results restaurants-in-cyprus.csv -exit-on-inactivity 3m , or any valid command, results in the following error:

{"level":"error","component":"scrapemate","error":"playwright: TypeError: Cannot read properties of null (reading 'scrollHeight')\n at eval (eval at evaluate (:226:30), <anonymous>:3:21)\n at UtilityScript.evaluate (<anonymous>:233:19)\n at UtilityScript.<anonymous> (<anonymous>:1:44)","time":"2024-06-11T01:22:54.741770005Z","message":"error while processing job"}

I downloaded the repository using git clone and built it locally. The script was functioning correctly a few days ago. So, it's unclear whether the error is on my end or if Google has changed their layout.

Edit: Running curl -I https://www.google.com/maps returns HTTP/2 200 which indicates that my IP address is not blocked by Google.

@gosom
Copy link
Owner

gosom commented Jun 18, 2024

@asadMarmash I just tried it (from the main branch) and i don't get that error.

Also tried the docker container and works.

Can you please try again and also using the docker image and let me know?

@admbyz
Copy link

admbyz commented Jun 23, 2024

@gosom
Guess its releated to #55 (comment)

You can test behavior with "polystyrene in doha" keyword it will lead single entry and then will get errors similar to these errors.

@arceushui
Copy link
Contributor

I think it is an intermittent issue, I tried to debug and if there is 1 record google will change the url into map/place but sometimes it executes too fast and the page url in playwright hasn't changed into map/place yet and when I put a long timeout after page.WaitForURL it will always work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants