'listOpenWorkflowExecutions' appears to be broken in versions 0.9.6-pre.7 and later. #97

rstahl opened this Issue Apr 9, 2013 · 4 comments

2 participants

var listParams = {
        startTimeFilter: {
            oldestDate:parseInt(endDate.getTime() / 1000) // unix time, seconds since epoch
    c.listOpenWorkflowExecutions(listParams, function processOpenWorkFlows(err, data) {

The callback is called with err = {} and data = null.

@lsegal lsegal closed this in 81c2372 Apr 17, 2013

I'm unable to reproduce this with err={}, but I was able to see an issue with parameter validation of unix timestamps. A quick workaround is to toggle paramValidation off:

var swf = new AWS.SimpleWorkflow({paramValidation: false});

Or you can use the master branch which contains a fix that I just pushed for this issue above. To install the npm from master, run:

npm install git://github.com/aws/aws-js-sdk

This fix will be included in the next release of the SDK.


@trevorrowe just pushed a related fix in #99 that allows you to pass a Date object directly as a parameter to timestamp fields in JSON based services: e579b41. This will also be in the next release, and means you won't have to worry about doing this conversion yourself. You could just pass endDate directly.


Excellent! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment