Skip to content

Missing Message Factory because of latest php-http/message version #361

Open

Description

@ABouchard55

With this recent commit : php-http/message@47a1433

php-http/message stopped requiring php-http/message-factory, which is needed by IntercomClient, and thus throws a DiscoveryFailedException exception.

Can be fixed by requiring php-http/message-factory manually.

Activity

  1. mayanksdudakiya commented on Jul 6, 2023

    @mayanksdudakiya

    Faced same issue, is there any official fix available instead of installing other packages?

    No php-http message factories found. Note that the php-http message factories are deprecated in favor of the PSR-17 message factories. To use the legacy Guzzle, Diactoros or Slim Framework factories of php-http, install php-http/message and php-http/message-factory and the chosen message implementation.

  2. andyg5000 commented on Nov 9, 2023

    @andyg5000

    Edit: disregard. I thought my answer was correct, but turns out that the php-http/message-factory was required and psr/http-factory is just a set of interfaces.

    psr/http-factory looks to fix this issue and is the supported update to php-http/message-factory

    However, It looks like we should all be coming up with a different solution anyway. https://community.intercom.com/api-webhooks-23/intercom-php-sdk-is-incredibly-outdated-475

  3. patrickomeara commented on Nov 9, 2023

    @patrickomeara

    I recently implemented https://docs.saloon.dev/ to combat this SDK being so far behind. I highly recommend this library. It handles rate limiting and error handling really well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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