Closed ghost closed 5 years ago
Hey.
You get some more exception output that this, right? I would say that you have not installed php-http/message
and/or php-http/guzzle6-adapter
. Because if you have, the php-http/discovery
would find classes for you.
Nope, I have only one "Puli Factory is not available ..." exception.
I have installed via composer php-http/message
and php-http/guzzle6-adapter
like in the geocoder installation guide:
$ composer require geocoder-php/google-maps-provider php-http/guzzle6-adapter php-http/message
I can see this library in the composer.lock and in the vendor folder. I have the following versions installed:
geocoder-php/google-maps-provider v4.2.0 php-http/guzzle6-adapter v1.1.1 php-http/message 1.6.0
Also, geocoder works despite the exception. Geocoder returns data response from google and throwing the exception.
That is super weird. I know that Magento users has this issue (long story but the bug is at Magento's) and I know this issue existed before 1.0 of php-http/discovery.
It is fine that this exception is being thrown but it should be caught within the php-http/discovery library
I'm getting the same exception (sadly, in production only) with following installed deps
geocoder-php/common-http 4.1.0 geocoder-php/google-maps-provider 4.2.0 kriswallsmith/buzz v0.15.2 php-http/buzz-adapter 1.0.0 php-http/message 1.7.0 willdurand/geocoder 4.2.0
The exception message has been improved in php-http/discovery 1.5
Hi, I'm using the latest version of Geocoder:
The second line (initing new instance of provider) always throws an exception:
PHP v7.1.13