{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3098","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3098/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3098/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3098/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3098","id":118635197,"number":3098,"title":"WebSocket connection closed. Status code: 1011. Reason: No value found in patch.","user":{"login":"per-samuelsson","id":2902045,"avatar_url":"https://avatars.githubusercontent.com/u/2902045?v=3","gravatar_id":"","url":"https://api.github.com/users/per-samuelsson","html_url":"https://github.com/per-samuelsson","followers_url":"https://api.github.com/users/per-samuelsson/followers","following_url":"https://api.github.com/users/per-samuelsson/following{/other_user}","gists_url":"https://api.github.com/users/per-samuelsson/gists{/gist_id}","starred_url":"https://api.github.com/users/per-samuelsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/per-samuelsson/subscriptions","organizations_url":"https://api.github.com/users/per-samuelsson/orgs","repos_url":"https://api.github.com/users/per-samuelsson/repos","events_url":"https://api.github.com/users/per-samuelsson/events{/privacy}","received_events_url":"https://api.github.com/users/per-samuelsson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-24T15:33:43Z","updated_at":"2015-11-25T08:08:49Z","closed_at":null,"body":"Reported by @jwillmer.\r\n\r\nI've now set up an environment and can reproduce it on my machine, and @alemoi helped me to find where I could look at the diagnostic content. I have isolated it, but I cant really understand what goes wrong.\r\n\r\nThese are the three relevant patches being sent:\r\n\r\n```\r\n[{\"op\":\"replace\",\"path\":\"/_ver#c$\",\"value\":1},{\"op\":\"test\",\"path\":\"/_ver#s\",\"value\":0},{\"op\":\"replace\",\"path\":\"/workspaces/0/PIM/ProductTypeModel/Breadcrumb/ChildName$\",\"value\":\"a\"}]\r\n[{\"op\":\"replace\",\"path\":\"/_ver#s\",\"value\":1},{\"op\":\"test\",\"path\":\"/_ver#c$\",\"value\":1},{\"op\":\"replace\",\"path\":\"/workspaces/0/PIM/ProductTypeModel/Breadcrumb/SelectedChild\",\"value\":{}},{\"op\":\"replace\",\"path\":\"/workspaces/0/PIM/ProductTypeModel/Breadcrumb/AdjacentSibblings\",\"value\":[]},{\"op\":\"replace\",\"path\":\"/workspaces/0/PIM/ProductTypeModel/Breadcrumb/IsButtonActive\",\"value\":true}]\r\n[{\"op\":\"replace\",\"path\":\"/_ver#c$\",\"value\":2},{\"op\":\"test\",\"path\":\"/_ver#s\",\"value\":1},{\"op\":\"replace\",\"path\":\"/workspaces/0/PIM/ProductTypeModel/Breadcrumb/OnSubmit$\"}]\r\n```\r\n\r\nI'll preserve the environment here on my box. Maybe @chrhol has some idea? You are free to ask followups / instruct me, or come by to debug it here if that could help!"},"comment":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/comments/159529756","html_url":"https://github.com/Starcounter/Starcounter/issues/3098#issuecomment-159529756","issue_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3098","id":159529756,"user":{"login":"miyconst","id":6435556,"avatar_url":"https://avatars.githubusercontent.com/u/6435556?v=3","gravatar_id":"","url":"https://api.github.com/users/miyconst","html_url":"https://github.com/miyconst","followers_url":"https://api.github.com/users/miyconst/followers","following_url":"https://api.github.com/users/miyconst/following{/other_user}","gists_url":"https://api.github.com/users/miyconst/gists{/gist_id}","starred_url":"https://api.github.com/users/miyconst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miyconst/subscriptions","organizations_url":"https://api.github.com/users/miyconst/orgs","repos_url":"https://api.github.com/users/miyconst/repos","events_url":"https://api.github.com/users/miyconst/events{/privacy}","received_events_url":"https://api.github.com/users/miyconst/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T08:08:49Z","updated_at":"2015-11-25T08:08:49Z","body":"@per-samuelsson, @jwillmer, @chrhol,\r\n\r\nYou don't need to waste your time on this.\r\n\r\nPuppet has two modes, debug mode and production mode. The production mode is enabled by default. In the production mode all of the patches are not validated. That is why a patch with `undefined` value got through to the server. This is obviously an incorrect patch, and server closes the connection.\r\n\r\nPolymer has a bug, setting value of such button to `undefined` if the button has any tags inside. I have reported the bug, they have accepted the bug, but not fixed yet.\r\n\r\n```html\r\n<button value=\"{{model.Click::click}}\">Click</button>\r\n```\r\n\r\nWhen Puppet runs in debug mode, then such patch will be caught on client side, and puppet will fail with an exception."}}