Coder Social home page Coder Social logo

Comments (9)

Gnucki avatar Gnucki commented on July 30, 2024 5

Add this line in your config/bundles.php file:

    Enqueue\MessengerAdapter\Bundle\EnqueueAdapterBundle::class => ['all' => true]

from messenger-enqueue-transport.

Steveb-p avatar Steveb-p commented on July 30, 2024 1

For future visitors, in case they run into the same issue as me when dealing with non-flex Symfony apps: there are two different bundles Enqueue\MessengerAdapter\Bundle\EnqueueAdapterBundle and \Enqueue\Bundle\EnqueueBundle. Both are required.

from messenger-enqueue-transport.

chdeliens avatar chdeliens commented on July 30, 2024 1

In case this helps anybody (even though this looks unrelated to enqueue), I had the following message on a fresh Symfony 4.2 + messenger app:

No transport supports the given DSN "amqp://guest:guest@localhost:5672/%2f/messages".

I fixed the issue by installing the amqp-pack bundle from Symfony with:
composer req amqp

That package also enforces that you have the amqp PHP extension installed and enabled 👍

from messenger-enqueue-transport.

sroze avatar sroze commented on July 30, 2024

There are a few bugs to be fixed in this pull-request. Could you check your application with the source code in the PR branch and be sure to clear your cache after installing the messenger adapter?

from messenger-enqueue-transport.

dgoujard avatar dgoujard commented on July 30, 2024

@sroze I cloned this repo https://github.com/scarbo87/messenger-adapter, copied files in my vendor directory, cleaned cache but i still got the error

from messenger-enqueue-transport.

sroze avatar sroze commented on July 30, 2024

I suggest you clone this repo instead, it contains the latest fixes: https://github.com/php-enqueue/messenger-adapter.

from messenger-enqueue-transport.

dgoujard avatar dgoujard commented on July 30, 2024

I created an clean project to test

composer create-project symfony/website-skeleton my_project
cd my_project
composer req symfony/messenger enqueue/messenger-adapter enqueue/redis predis/predis:^1 
editing .env to set ENQUEUE_DSN content
editing config/packages/messenger.yaml to add amqp: enqueue://default
adding "Enqueue\MessengerAdapter\Bundle\EnqueueAdapterBundle::class => ['all' => true]" in config/bundles.php
execute  bin/console messenger:consume-messages amqp

I got the error

In TransportFactory.php line 37:
                                                            
  No transport supports the given DSN "enqueue://default".  

Now i download master branch and update package un vendor dir, clean the dev cache and it's work (no error message)

from messenger-enqueue-transport.

lpj145 avatar lpj145 commented on July 30, 2024

same with me: No transport supports the given DSN "amqp://guest:guest@localhost:5672/%2f/messages"."

from messenger-enqueue-transport.

Herz3h avatar Herz3h commented on July 30, 2024

composer require symfony/amqp-messenger in my case on Symfony 4.4 -> 5.3 upgrade

from messenger-enqueue-transport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.