{"action":"created","issue":{"url":"https://api.github.com/repos/dcodeIO/protobuf.js/issues/534","repository_url":"https://api.github.com/repos/dcodeIO/protobuf.js","labels_url":"https://api.github.com/repos/dcodeIO/protobuf.js/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/dcodeIO/protobuf.js/issues/534/comments","events_url":"https://api.github.com/repos/dcodeIO/protobuf.js/issues/534/events","html_url":"https://github.com/dcodeIO/protobuf.js/issues/534","id":194678752,"number":534,"title":"int64 serialization/deserialization not working properly","user":{"login":"paralin","id":534887,"avatar_url":"https://avatars.githubusercontent.com/u/534887?v=3","gravatar_id":"","url":"https://api.github.com/users/paralin","html_url":"https://github.com/paralin","followers_url":"https://api.github.com/users/paralin/followers","following_url":"https://api.github.com/users/paralin/following{/other_user}","gists_url":"https://api.github.com/users/paralin/gists{/gist_id}","starred_url":"https://api.github.com/users/paralin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paralin/subscriptions","organizations_url":"https://api.github.com/users/paralin/orgs","repos_url":"https://api.github.com/users/paralin/repos","events_url":"https://api.github.com/users/paralin/events{/privacy}","received_events_url":"https://api.github.com/users/paralin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-09T19:35:47Z","updated_at":"2016-12-09T20:27:15Z","closed_at":null,"body":"```js\r\nvar protobufjs = require('protobufjs');\r\nvar ro = protobufjs.loadSync('./test.proto');\r\n\r\nvar test = ro.lookup('test.Test');\r\nvar enc = test.encode({int_64: '314159265358979'}).finish();\r\nvar dec = test.decode(enc);\r\n\r\nif (dec.int_64 === '314159265358979') {\r\n  console.log('Test passed.');\r\n} else {\r\n  console.log(dec.int_64 + ' != 314159265358979 (expected)');\r\n}\r\n```\r\n\r\n```proto\r\nsyntax = \"proto3\";\r\npackage test;\r\n\r\nmessage Test {\r\n  fixed64 int_64 = 1;\r\n}\r\n```\r\n\r\nOutput:\r\n\r\n```\r\n16675180715352071609 != 314159265358979 (expected)\r\n```\r\n\r\nExtracted from a failing test case in grpc. `long` is not installed. Node `v6.9.1`"},"comment":{"url":"https://api.github.com/repos/dcodeIO/protobuf.js/issues/comments/266114676","html_url":"https://github.com/dcodeIO/protobuf.js/issues/534#issuecomment-266114676","issue_url":"https://api.github.com/repos/dcodeIO/protobuf.js/issues/534","id":266114676,"user":{"login":"dcodeIO","id":1136893,"avatar_url":"https://avatars.githubusercontent.com/u/1136893?v=3","gravatar_id":"","url":"https://api.github.com/users/dcodeIO","html_url":"https://github.com/dcodeIO","followers_url":"https://api.github.com/users/dcodeIO/followers","following_url":"https://api.github.com/users/dcodeIO/following{/other_user}","gists_url":"https://api.github.com/users/dcodeIO/gists{/gist_id}","starred_url":"https://api.github.com/users/dcodeIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcodeIO/subscriptions","organizations_url":"https://api.github.com/users/dcodeIO/orgs","repos_url":"https://api.github.com/users/dcodeIO/repos","events_url":"https://api.github.com/users/dcodeIO/events{/privacy}","received_events_url":"https://api.github.com/users/dcodeIO/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T20:27:15Z","updated_at":"2016-12-09T20:27:15Z","body":"Will see what I can do, need to setup this test first!"}}
{"actor":{"display_login":"dcodeIO"}}