You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after upgrading AWS SDK the SQS Queue TTR will received only as a string and the SQS driver in yii is sent as an integer.
What is the expected result?
Error: The provided type for MessageAttributes -> TTR -> StringValue value was integer. The modeled type is string.
Additional info
must be casting the TTR value as a string to prevent the exception in pushMessage function in yiisoft/yii2-queue/src/drivers/sqs/Queue.php or override the class and make your changed
@mahran419 This seems to be an issue with the yii2-queue package and I think it's the same issue fixed here: yiisoft/yii2-queue#502
Could you please try with the "dev-master" version ("yiisoft/yii2-queue": "dev-master" in your composer.json file).
What steps will reproduce the problem?
after upgrading AWS SDK the SQS Queue TTR will received only as a string and the SQS driver in yii is sent as an integer.
What is the expected result?
Error: The provided type for
MessageAttributes -> TTR -> StringValue
value wasinteger
. The modeled type isstring
.Additional info
must be casting the TTR value as a string to prevent the exception in pushMessage function in yiisoft/yii2-queue/src/drivers/sqs/Queue.php or override the class and make your changed
$request = [ 'QueueUrl' => $this->url, 'MessageBody' => $message, 'DelaySeconds' => $delay, 'MessageAttributes' => [ 'TTR' => [ 'DataType' => 'Number', 'StringValue' => (string)$ttr, ], ], ];
The text was updated successfully, but these errors were encountered: