last day (15 days later) » 

8:35 AM
0
Q: No transport supports the given Messenger DSN

EdvinasPociusWhen 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: defau...

 
@Jakumi I have read this documentation a couple of times and do not see what's missing from mine configuration.
 
what I'm asking is: does the table in the database exist?
 
no, the table doesn't exist in the database.
 
I wouldn't expect it, but maybe a message as well as a handler is required for this to work ... which you might already have? (symfony.com/doc/current/…)
 
8:35 AM
There is a message, handler and dispatcher created. It works fine when the message is consumed immediately - no errors occur
 
so ... the doctrine transport should be present, if you've installed messenger 4.3
and now the question is, why is the factory apparently unknown (because otherwise, it would say it handles the dsn)
can you check debug:container for DoctrineTransportFactory?
 
8:51 AM
so I fixed this issue by looking at messenger code. apparently, the doctrine only works when orm configuration is present
 
huh. didn't expect that one.
 
yeah me too. Documentations does not mention that orm is required
 
true. didn't even expect you to not be using the orm, tbh. ^^
please write up an answer for this, because I can imagine other people stumbling over this
 
still thanks for the help. Can you help with another issue with the same symfony messenger because i think it's another this library fault
 
I'm not really familiar with the messenger, but shoot.
 
8:56 AM
so the configuration is the same as it's in my question. Now I'm getting this error -> Unknown option found : [transport_name]. Allowed options are [messenger_messages, default, 3600, 1]
 
have you changed the DoctrineTransportFactory?
 
in it, it says: unset($options['transport_name']); as the first line when creating a transport.
 
not in my vendor
what messenger version are you running?
 
maybe you should update the messenger component ;o)
 
9:03 AM
okay, thanks man, helped me a lot! Have a great day!
 
you too ;o)
 

last day (15 days later) »