Open
Description
This issue have been tested on the official node Dockerfile, and a MacOS.
- Operating System: Got the error using a docker image
FROM node
and a MacOS 13.0.1 - Node version: v18.11.0
- google-play-scraper version: "google-play-scraper": "^9.1.0"
Description:
Got a TypeError: Cannot read properties of undefined (reading 'map')
when using .search()
Example Dockerfile:
FROM node
EXPOSE 3000
WORKDIR /app
COPY . .
RUN npm install
CMD node server.js
Example code:
const gplay = require('google-play-scraper');
gplay.search(
{
term: 'social',
lang: 'fr',
country: 'FR',
num: 5
}
)
.then((apps) => { console.log(apps) })
.catch((error) => {
console.log(error);
});
Error message:
TypeError: Cannot read properties of undefined (reading 'map')
at node_modules/ramda/dist/ramda.js:578:31
at Object.f2 [as map] (node_modules/ramda/dist/ramda.js:473:22)
at processFirstPage (node_modules/google-play-scraper/lib/search.js:101:27)
at node_modules/google-play-scraper/lib/search.js:31:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Metadata
Metadata
Assignees
Labels
No labels