facundoolano / google-play-scraper

Node.js scraper to get data from Google Play
MIT License
2.32k stars 629 forks source link

Error requesting Google Play: While fetching suggestions #537

Open ghost opened 2 years ago

ghost commented 2 years ago

Description:

Whenever trying to get suggestion from google play it is returning

Error: Error requesting Google Play: at D:\101logix\PROTHEME\protheme1\app analysis\api\node_modules\aso\node_modules\google-play-scraper\lib\utils\request.js:44:19 at processTicksAndRejections (internal/process/task_queues.js:95:5) { status: 503 }

Example code:

function getSuggestionFromAppStore(req, res){
    return new Promise( async (resolve, reject)=>{
        var appname = req.body.name
        try{
            store.suggest({
                term: appname
            }).then(res=>{

                return resolve({"success":true, "data":res});
            }).catch(err=>{
                console.log(err)
                return reject({"success":false, "error":"Error Occured"});
            })
        }catch(err){
            return reject({"success":false, "error":"Error Occured"});
        }
    })
}

Error message:

Error: Error requesting Google Play:
    at D:\101logix\PROTHEME\protheme1\app analysis\api\node_modules\aso\node_modules\google-play-scraper\lib\utils\request.js:44:19
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  status: 503
}

image

facundoolano commented 2 years ago

can you check if this still happens with the latest version?