{"action":"closed","issue":{"url":"https://api.github.com/repos/MadKudu/node-marketo/issues/26","repository_url":"https://api.github.com/repos/MadKudu/node-marketo","labels_url":"https://api.github.com/repos/MadKudu/node-marketo/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/MadKudu/node-marketo/issues/26/comments","events_url":"https://api.github.com/repos/MadKudu/node-marketo/issues/26/events","html_url":"https://github.com/MadKudu/node-marketo/issues/26","id":167834642,"number":26,"title":"Issue with Marketo.streamify when query returns empty?","user":{"login":"pcothenet","id":1460006,"avatar_url":"https://avatars3.githubusercontent.com/u/1460006?v=4","gravatar_id":"","url":"https://api.github.com/users/pcothenet","html_url":"https://github.com/pcothenet","followers_url":"https://api.github.com/users/pcothenet/followers","following_url":"https://api.github.com/users/pcothenet/following{/other_user}","gists_url":"https://api.github.com/users/pcothenet/gists{/gist_id}","starred_url":"https://api.github.com/users/pcothenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcothenet/subscriptions","organizations_url":"https://api.github.com/users/pcothenet/orgs","repos_url":"https://api.github.com/users/pcothenet/repos","events_url":"https://api.github.com/users/pcothenet/events{/privacy}","received_events_url":"https://api.github.com/users/pcothenet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-27T11:46:05Z","updated_at":"2017-10-12T22:19:19Z","closed_at":"2017-10-12T22:19:19Z","author_association":"OWNER","body":"It seems that whenever a promise doesn't not return results, `Marketo.streamify` returns a stream that never ends.\n\ne.g. the stream\n\n```\nMarketo.streamify(marketo.lead.getActivities([], activity_types_ids, nextPageToken))\n```\n\ndoes not seem to start/end whenever the response to `marketo.lead.getActivities([], activity_types_ids, nextPageToken)` has no results.\n"}}
{"actor":{"display_login":"pcothenet"}}