Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Messenger] Fix SQS visibility_timeout type #53910

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

valtzu
Copy link
Contributor

@valtzu valtzu commented Feb 12, 2024

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Introduced in #53524
License MIT

Getting an error after composer update:

Error thrown while running command "messenger:consume -- async". Message: "HTTP 400 returned for "https://sqs.eu-west-1.amazonaws.com/)".

Code:    SerializationException
Message: STRING_VALUE can not be converted to an Integer
Type:    
Detail:  "

async-aws/sqs v2 is using JSON instead of x-www-form-urlencoded so now all of the sudden, types do matter. If you set visibility_timeout in the DSN, it will be sent as a string to SQS – so we need to cast it explicitly.

@nicolas-grekas
Copy link
Member

Thank you @valtzu.

@nicolas-grekas nicolas-grekas merged commit c873894 into symfony:5.4 Feb 14, 2024
10 of 11 checks passed
This was referenced Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants