{"action":"closed","issue":{"url":"https://api.github.com/repos/nervous-systems/hildebrand/issues/12","repository_url":"https://api.github.com/repos/nervous-systems/hildebrand","labels_url":"https://api.github.com/repos/nervous-systems/hildebrand/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/nervous-systems/hildebrand/issues/12/comments","events_url":"https://api.github.com/repos/nervous-systems/hildebrand/issues/12/events","html_url":"https://github.com/nervous-systems/hildebrand/issues/12","id":164792502,"number":12,"title":"crc32-mismatch for big requests","user":{"login":"robertvojta","id":1084172,"avatar_url":"https://avatars.githubusercontent.com/u/1084172?v=3","gravatar_id":"","url":"https://api.github.com/users/robertvojta","html_url":"https://github.com/robertvojta","followers_url":"https://api.github.com/users/robertvojta/followers","following_url":"https://api.github.com/users/robertvojta/following{/other_user}","gists_url":"https://api.github.com/users/robertvojta/gists{/gist_id}","starred_url":"https://api.github.com/users/robertvojta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertvojta/subscriptions","organizations_url":"https://api.github.com/users/robertvojta/orgs","repos_url":"https://api.github.com/users/robertvojta/repos","events_url":"https://api.github.com/users/robertvojta/events{/privacy}","received_events_url":"https://api.github.com/users/robertvojta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":30,"created_at":"2016-07-11T09:14:06Z","updated_at":"2016-07-18T15:11:08Z","closed_at":"2016-07-18T15:11:08Z","body":"Just started tracking this issue, not sure where the problem is, but maybe anyone already saw it.\r\n\r\nI've got simple lambda function ...\r\n\r\n```\r\n(defn- get-participants [org survey]\r\n  (query!\r\n    (lambda/credentials)\r\n    :frank-participant\r\n    {:nyx-organization [:= org]\r\n     :id               [:begins-with (str survey \":\")]}\r\n    {:project [:nyx-organization :nyx-user :id :timestamp :employee :participant :answers]}\r\n    {:chan (async/chan 1024)}))\r\n\r\n(def ^:export list\r\n  (async-lambda-fn\r\n    (fn [ev ctx]\r\n      (go\r\n        (try\r\n          (if-let [_ (schema/check ParticipantListEventSchema ev)]\r\n            (lambda/bad-request! ctx)\r\n            (let [org (:nyx-organization ev)\r\n                  id (:survey ev)\r\n                  participants (get-participants org id)\r\n                  participants (<! (async/into [] participants))]\r\n              (if (some #(instance? js/Error %) participants)\r\n                (lambda/internal-server-error! ctx)\r\n                (lambda/succeed! ctx {:participants (participants-for-user participants \"admin\")}))))\r\n          (catch :default _\r\n            (lambda/internal-server-error! ctx)))))))\r\n```\r\n\r\n... this function does work perfectly for ~100 participants. But when I try to fetch 500 participants (roughly > 100), I've got crc32-mismatch for almost all requests. When I try this in Python, it does work like a charm even for 1000 participants.\r\n\r\nAn idea what can be wrong?"}}
{"actor":{"display_login":"moea"}}