Skip to content

TypeError: Cannot read properties of undefined (reading 'map') when using .search() #613

Open
@bulgarian-beast

Description

@bulgarian-beast

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions