Skip to content

SQS driver error: The provided type for WaitTimeSeconds value was string. The modeled type is integer. #522

@flaviovs

Description

@flaviovs

When using the SQS driver and passing a timeout to the queue/listen controller action, the queue runner crashes with the error below:

yii\base\ErrorException: The provided type for `WaitTimeSeconds` value was `string`. The modeled type is `integer`

The problem is caused by the $timeout parameter of actionListen from the command line being passed as a string value to downstream calls up until it reaches AWS SDK, which apparently checks the data type and bails if it's not a PHP integer.

I'll be sending a pull request shortly.

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