Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
rstahl opened this Issue · 4 comments

2 participants

rstahl Loren Segal
rstahl
var listParams = {
        domain:domain,
        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.

Loren Segal lsegal closed this in 81c2372
Loren Segal
Owner

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.

rstahl
Loren Segal
Owner

@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.

rstahl

Excellent! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.