Skip to content

No message factories found #114

Closed
Closed
@garak

Description

@garak
Q A
Bug? yes
New Feature? no
Version 1.4.0

Actual Behavior

I'm getting exception:

Uncaught PHP Exception Http\Discovery\NotFoundException: "No message factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation." at /myproject/vendor/php-http/discovery/src/MessageFactoryDiscovery.php line 27 {"exception":"[object] (Http\Discovery\NotFoundException(code: 0): No message factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation. at /myproject/vendor/php-http/discovery/src/MessageFactoryDiscovery.php:27, Http\Discovery\Exception\DiscoveryFailedException(code: 0): Could not find resource using any discovery strategy. Find more information at http://docs.php-http.org/en/latest/discovery.html#common-errors\n - Puli Factory is not available\n\n at /myproject/vendor/php-http/discovery/src/Exception/DiscoveryFailedException.php:41

Expected Behavior

No exception

Steps to Reproduce

Sadly, I don't know. Local (dev) environment is working. Remote (prod) environment throws exception.
My installed dependencies (only relevant ones):

guzzlehttp/psr7                    1.4.2              PSR-7 message impleme...
kriswallsmith/buzz                 v0.15.2            Lightweight HTTP client
php-http/buzz-adapter              1.0.0              Buzz HTTP Adapter
php-http/curl-client               v1.7.1             cURL client for PHP-HTTP
php-http/discovery                 1.4.0              Finds installed HTTPl...
php-http/httplug                   v1.1.0             HTTPlug, the HTTP cli...
php-http/message                   1.7.0              HTTP Message related ...
php-http/message-factory           v1.0.2             Factory interfaces fo...
php-http/promise                   v1.0.0             Promise used for asyn...
psr/cache                          1.0.1              Common interface for ...
psr/container                      1.0.0              Common Container Inte...
psr/http-message                   1.0.1              Common interface for ...
psr/log                            1.0.2              Common interface for ...
psr/simple-cache                   1.0.1              Common interfaces for...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions