Why pushing update to Mercure Hub with PublisherInterface throw a TransferException?
I faced this error before.Simply Mercure Hub requires a valid SSL Certificate in order to work, and the certificate provided by Symfony CLI (> symfony serve
) isn't a valid one!
You can:
- Add a valid SSL certificate to your project.
- Or if it's a Symfony 4 project you can install Symfony web server
composer require symfony/web-server-bundle
and usephp bin/console server:run
to start the server on HTTP instead of HTTPS. - You can also install apache-pack using
composer required apache-pack
and set a Virtual host one your machine.