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

Call to undefined method Response::getStatus() #35

Open
cpamaster opened this issue May 17, 2020 · 4 comments
Open

Call to undefined method Response::getStatus() #35

cpamaster opened this issue May 17, 2020 · 4 comments

Comments

@cpamaster
Copy link

Found 2 problems:

In Client.php line 15:                                                
Call to undefined method Symfony\Component\BrowserKit\Response::getStatus()
In Scraper.php line 368:
Call to undefined method Symfony\Component\BrowserKit\Response::getStatus()

Need use getStatusCode()

@hcaz
Copy link

hcaz commented May 19, 2020

Related to #27

@pratikbarman
Copy link

Same Issue

@amilashanaka
Copy link


Fatal error: Uncaught Error: Call to undefined method Symfony\Component\BrowserKit\Response::getStatus() in C:\wamp64\www\qrtrace\api\App_stat\vendor\raulr\google-play-scraper\src\Client.php:15 Stack trace: #0 C:\wamp64\www\qrtrace\api\App_stat\vendor\symfony\browser-kit\AbstractBrowser.php(387): Raulr\GooglePlayScraper\Client->filterResponse(Object(Symfony\Component\BrowserKit\Response)) #1 C:\wamp64\www\qrtrace\api\App_stat\vendor\raulr\google-play-scraper\src\Scraper.php(367): Symfony\Component\BrowserKit\AbstractBrowser->request('GET', 'https://play.go...') #2 C:\wamp64\www\qrtrace\api\App_stat\vendor\raulr\google-play-scraper\src\Scraper.php(108): Raulr\GooglePlayScraper\Scraper->request('/store/apps/det...', Array) #3 C:\wamp64\www\qrtrace\api\App_stat\andriod.php(13): Raulr\GooglePlayScraper\Scraper->getApp('com.mojang.mine...') #4 {main} thrown in C:\wamp64\www\qrtrace\api\App_stat\vendor\raulr\google-play-scraper\src\Client.php on line 15

@SyedMuradAliShah
Copy link

  • [Change getStatus() to getStatusCode() ]

vendor\raulr\google-play-scraper\src\Client.php
Line: 15
$response->getStatus()
to
$response->getStatusCode()

vendor\raulr\google-play-scraper\src\Scraper.php
Line: 368
$status_code = $this->client->getResponse()->getStatus();
to
$status_code = $this->client->getResponse()->getStatusCode();

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

5 participants