You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicfunction__construct(GuzzleClient$client) {
$this->client = $client;
}
publicfunctionlogin()
{
// Call the API$response = $this->client->get('/oauth/v2/token');
dump($client); // client exists and is directing to corret URL
dump($response); // Client error: `GET http:\/\/some-url.dev\/oauth\/v2\/token` resulted in a `406 Not Acceptable` response:\n\n\n \n \n
die('It does not work :/');
}
...
The strange thing is that my IDE (PhpStorm) does not detect the service "@guzzle.client.my_x_client" but detects "@guzzle.client.8p_guzzle_client" inside the services.yml
The text was updated successfully, but these errors were encountered:
Sorry for the late answer 😞
You are right. It seems that all headers in the configuration are not used in any request. I've created a new branch with a hotfix/workaround: #78
It would be great if you can test if this change solves your problem. Afterwards I will clean up the changes and release a new version.
I'm using the bundle inside a service but cannot set the headers using settings:
config.yml:
services.yml
MyConnect.php
The strange thing is that my IDE (PhpStorm) does not detect the service
"@guzzle.client.my_x_client"
but detects"@guzzle.client.8p_guzzle_client"
inside the services.ymlThe text was updated successfully, but these errors were encountered: