Skip to content

[simple-client] sqs: DSN not working #483

Closed
@jhogervorst

Description

@jhogervorst

I’ve installed enqueue/sqs, enqueue/fs, and enqueue/simple-client via Composer.

When running:

$dsn = 'sqs:?key=aKey&secret=aSecret&region=eu-west-1';
$client = new \Enqueue\SimpleClient\SimpleClient($dsn);

I get an exception:

Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
Unrecognized option "sqs:?key=aKey&secret=aSecret&region=eu_west_1" under "enqueue.transport"

I’ve already checked whether the SQS broker exists, which is the case (var_dump(class_exists(\Enqueue\Sqs\SqsConnectionFactory::class)) yields bool(true)).

I did notice that when I change the DSN to sqs://... (so adding two slashes), I do not get the Symphony exception. However, then I get a "Failed to parse DSN" exception from SqsConnectionFactory, as it doesn’t expect those extra slashes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions