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

Argument 3 passed to GuzzleHttp\Client::request() must be of the type array, string given #754 #1771

Closed
klausbreyer opened this issue Mar 9, 2017 · 1 comment

Comments

@klausbreyer
Copy link

Hi,

I just booted up a new puphpet virtual machine and tried to run this basic example from Facebook: https://github.com/facebook/php-graph-sdk/blob/5.4/docs/examples/facebook_login.md

Facebook is using guzzle and it is working on my normal development system and on my live systems, so I come to you guys from guzzle for help. Because I think(!) that it is may be caused by the puphpet system. But again. you are the experts for your library and maybe can me point to something I have to fix in my setup.

So, I got this following error on the callback page:

( ! ) Catchable fatal error: Argument 3 passed to GuzzleHttp\Client::request() must be of the type array, string given, called in /var/www/backend/www/vendor/guzzlehttp/guzzle/src/Client.php on line 87 and defined in /var/www/backend/www/vendor/guzzlehttp/guzzle/src/Client.php on line 126

See the Stacktrace:
screen shot 2017-03-09 at 14 40 01

What could be the problem? It is maybe something with ssl certificate verification? It works on my normal dev machine without vagrant with no problems as I told you.

This is the config file from puphpet, in case you wanted to try it out by yourself. https://gist.github.com/klausbreyer/2e422f660c41a3d393b7f98e43b46c7a

@klausbreyer
Copy link
Author

klausbreyer commented Mar 13, 2017

looks like an composer misbehaviour. composer/composer#6250

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

1 participant