-
-
Notifications
You must be signed in to change notification settings - Fork 634
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
TypeError: Cannot read properties of undefined (reading 'map') when using .search() #613
Comments
It looks like it's related to: Hoping it will help. |
I have the same issue with this request and it seems to be a language issue but we'd love to scrape different languages:
There seems to be something wrong with the parsing in search.js:101, so far I came to the point that I'm not familiar with Ramda and how its supposed to work to find a corresponding patch quickly, maybe someone else has an idea? |
The unit tests fail on search as well, it looks like the parsing breaks especially if/when there are less than 30 apps for a search result. |
A playsearch.kaki87.net user discovered that failing single-word queries may be fixed by adding quotes, possibly due to the following layout change they captured :
Not universal, unfortunately. For example, when |
Interesting, that seems to work indeed, just putting the term in quotes |
Well, it only works when searching apps by title, it won't work with generic terms like |
I checked both
Seems to be corrected with last merged PRs |
I think I have a similar or related issue. I isolated it to a single keyword that doesn't appear to work. If I try this request with v10.0.0 of the library :
Then I get this error :
I tried a bunch of options (notably in terms of country and language but also throttling, number of results etc...) and nothing worked. Funnily enough searching for "Viulun virittäjä" does work perfectly. I also tried the quote trick from above to no avail. I'm wondering if this could be due to the play store returning zero result for that specific request (see here : https://play.google.com/store/search?q=Viulunviritt%C3%A4j%C3%A4&c=apps ), so I wanted to try finding another request with no result but I couldn't find a single one. Even entering a bunch of gibberish the Play Store would still give me some result. The issue is that it's completely breaking the script I'm using, and I haven't managed to work around it apart from finding the bad keyword and specifically excluding it from my script. Any help? |
This issue have been tested on the official node Dockerfile, and a MacOS.
FROM node
and a MacOS 13.0.1Description:
Got a
TypeError: Cannot read properties of undefined (reading 'map')
when using.search()
Example Dockerfile:
Example code:
Error message:
The text was updated successfully, but these errors were encountered: