Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No transport supports the given Messenger DSN

When trying to configure symfony messenger always getting error No transport supports the given Messenger DSN "doctrine://default".

symfony framework: 4.3.4

messenger: 4.3.0

In this application only doctrine-bundle & symfony-messenger is installed.

doctrine:

doctrine:
    dbal:
        default_connection: default
        connections:
            default:
                schema_filter: '~^(?!messenger_messages)~'
                dbname: sftest
                host: 127.0.0.1
                port: ~
                user: root
                password: ~
                charset: "UTF8"
                driver: 'pdo_mysql'
                server_version: '5.7'
                default_table_options:
                    charset: utf8mb4
                    collate: utf8mb4_unicode_ci

messenger:

framework:
  messenger:
    transports:
      async: doctrine://default
    routing:
      'App\Entity\Notification': async
like image 385
EdvinasPocius Avatar asked Aug 31 '25 18:08

EdvinasPocius


1 Answers

So the problem was that symfony messenger require doctrine orm, and I only was using symfony dbal.

like image 115
EdvinasPocius Avatar answered Sep 02 '25 07:09

EdvinasPocius