jayzeng / virustotal_apiwrapper

Virus Total Public API v2.0 PHP Wrapper
http://jayzeng.github.io/virustotal_apiwrapper/
MIT License
65 stars 18 forks source link

Undefined method in Guzzle? #22

Closed daniert closed 7 years ago

daniert commented 7 years ago

I'm getting this error:

PHP Fatal error: Call to undefined method GuzzleHttp\Psr7\Response::send() in ..../vendor/jayzeng/virustotalapi/Src/VirusTotal/File.php on line 25

("guzzlehttp/guzzle": "^6.2")

jayzeng commented 7 years ago

I think I see what the problem is, @daniert do you mind putting the file you want to scan somewhere? I will add as unit test input (if you don't mind)

daniert commented 7 years ago

No problem, but I tried with several files and I got the same error. Anyway, I've attached the file in this message. filetest.apk.zip

twdnhfr commented 7 years ago

I get the same error. Any news on this?

jayzeng commented 7 years ago

I will put in a fix later tonight, sorry for the delay guys

jayzeng commented 7 years ago

@daniert @tw88 I pushed the fix to 0.1.9 (https://packagist.org/packages/jayzeng/virustotalapi#0.1.9), please bump up compose.json to this version and let me know how it goes

daniert commented 7 years ago

It works perfectly for me, thank you!

jayzeng commented 7 years ago

:) Going to close this issue, feel free to re-open if it remains unresolved.