Skip to content

[SQS] Multiple exceptions thrown during the day "String could not be parsed as XML" #1218

@mynameisbogdan

Description

@mynameisbogdan

Hello,

Firstly thank you for offering us this amazing client!

I have an issue with getting a few exceptions with the message String could not be parsed as XML. It's not the end of the world but I hope to find a solution in order to prevent further spamming of the logs.

Trace

{
    "class": "Exception",
    "message": "String could not be parsed as XML",
    "code": 0,
    "file": "[/path/site/]vendor/async-aws/sqs/src/Result/ReceiveMessageResult.php:33",
    "trace": [
        "[/path/site/]vendor/async-aws/sqs/src/Result/ReceiveMessageResult.php:33",
        "[/path/site/]vendor/async-aws/core/src/Result.php:133",
        "[/path/site/]vendor/async-aws/sqs/src/Result/ReceiveMessageResult.php:26",
        "[/path/site/]vendor/symfony/amazon-sqs-messenger/Transport/Connection.php:235",
        "[/path/site/]vendor/symfony/amazon-sqs-messenger/Transport/Connection.php:222",
        "[/path/site/]vendor/symfony/amazon-sqs-messenger/Transport/Connection.php:194",
        "[/path/site/]vendor/symfony/amazon-sqs-messenger/Transport/Connection.php:181",
        "[/path/site/]vendor/symfony/amazon-sqs-messenger/Transport/AmazonSqsReceiver.php:44",
        "[/path/site/]vendor/symfony/messenger/Worker.php:104",
        "[/path/site/]vendor/symfony/messenger/Command/ConsumeMessagesCommand.php:225",
        "[/path/site/]vendor/symfony/console/Command/Command.php:298",
        "[/path/site/]vendor/symfony/console/Application.php:1033",
        "[/path/site/]vendor/symfony/framework-bundle/Console/Application.php:96",
        "[/path/site/]vendor/symfony/console/Application.php:299"
    ]
}

I'm seeing that RetryableHttpClient is used with AwsRetryStrategy with 3 maxRetries.

What can I do to further prevent this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions