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

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

Open
ABouchard55 opened this issue May 17, 2023 · 3 comments
Open

Comments

@ABouchard55
Copy link

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.

@mayanksdudakiya
Copy link

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.

@andyg5000
Copy link

andyg5000 commented Nov 9, 2023

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

@patrickomeara
Copy link

patrickomeara commented Nov 9, 2023

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants