payload: {"action":"created","issue":{"url":"https://api.github.com/repos/ssbc/ssb-server/issues/627","repository_url":"https://api.github.com/repos/ssbc/ssb-server","labels_url":"https://api.github.com/repos/ssbc/ssb-server/issues/627/labels{/name}","comments_url":"https://api.github.com/repos/ssbc/ssb-server/issues/627/comments","events_url":"https://api.github.com/repos/ssbc/ssb-server/issues/627/events","html_url":"https://github.com/ssbc/ssb-server/issues/627","id":405012210,"node_id":"MDU6SXNzdWU0MDUwMTIyMTA=","number":627,"title":"Bug - Hex strings in a message sometimes have leading zeros cut off.","user":{"login":"NiklasKunkel","id":1817533,"node_id":"MDQ6VXNlcjE4MTc1MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/1817533?v=4","gravatar_id":"","url":"https://api.github.com/users/NiklasKunkel","html_url":"https://github.com/NiklasKunkel","followers_url":"https://api.github.com/users/NiklasKunkel/followers","following_url":"https://api.github.com/users/NiklasKunkel/following{/other_user}","gists_url":"https://api.github.com/users/NiklasKunkel/gists{/gist_id}","starred_url":"https://api.github.com/users/NiklasKunkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NiklasKunkel/subscriptions","organizations_url":"https://api.github.com/users/NiklasKunkel/orgs","repos_url":"https://api.github.com/users/NiklasKunkel/repos","events_url":"https://api.github.com/users/NiklasKunkel/events{/privacy}","received_events_url":"https://api.github.com/users/NiklasKunkel/received_events","type":"User","site_admin":false},"labels":[{"id":142576336,"node_id":"MDU6TGFiZWwxNDI1NzYzMzY=","url":"https://api.github.com/repos/ssbc/ssb-server/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"christianbundy","id":537700,"node_id":"MDQ6VXNlcjUzNzcwMA==","avatar_url":"https://avatars1.githubusercontent.com/u/537700?v=4","gravatar_id":"","url":"https://api.github.com/users/christianbundy","html_url":"https://github.com/christianbundy","followers_url":"https://api.github.com/users/christianbundy/followers","following_url":"https://api.github.com/users/christianbundy/following{/other_user}","gists_url":"https://api.github.com/users/christianbundy/gists{/gist_id}","starred_url":"https://api.github.com/users/christianbundy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianbundy/subscriptions","organizations_url":"https://api.github.com/users/christianbundy/orgs","repos_url":"https://api.github.com/users/christianbundy/repos","events_url":"https://api.github.com/users/christianbundy/events{/privacy}","received_events_url":"https://api.github.com/users/christianbundy/received_events","type":"User","site_admin":false},"assignees":[{"login":"christianbundy","id":537700,"node_id":"MDQ6VXNlcjUzNzcwMA==","avatar_url":"https://avatars1.githubusercontent.com/u/537700?v=4","gravatar_id":"","url":"https://api.github.com/users/christianbundy","html_url":"https://github.com/christianbundy","followers_url":"https://api.github.com/users/christianbundy/followers","following_url":"https://api.github.com/users/christianbundy/following{/other_user}","gists_url":"https://api.github.com/users/christianbundy/gists{/gist_id}","starred_url":"https://api.github.com/users/christianbundy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianbundy/subscriptions","organizations_url":"https://api.github.com/users/christianbundy/orgs","repos_url":"https://api.github.com/users/christianbundy/repos","events_url":"https://api.github.com/users/christianbundy/events{/privacy}","received_events_url":"https://api.github.com/users/christianbundy/received_events","type":"User","site_admin":false}],"milestone":null,"comments":18,"created_at":"2019-01-30T23:28:28Z","updated_at":"2019-02-07T04:17:41Z","closed_at":null,"author_association":"NONE","body":"Running scuttlebot 11.4.1 and 13.2.1 and getting the same issue.\r\n\r\nEncountering a weird bug where passing a hex string as an input parameter to a message sometimes leads to the leading zeros cut off. This is strange because it only happens sometimes.\r\n\r\nhttps://imgur.com/rCOp9oE\r\n\r\nThe input passed for field median0x is: ```0000000000000000000000000000000000000000000000000000005013055420```\r\n\r\nIn the generated message we see:\r\n```\"median0x\": 5013055420,```\r\n\r\nWhat's also strange is that the median0x field is now treated as a number rather than a string.\r\n\r\nMeanwhile the majority of the time everything works fine.\r\n\r\nhttps://imgur.com/AHlD06X\r\n\r\nThe input passed for field median0x is:\r\n``` 000000000000000000000000000000000000000000000000016a84d6e0e18000```\r\n\r\nIn the generated message we see:\r\n``` \"median0x\": \"000000000000000000000000000000000000000000000000016a84d6e0e18000\",```\r\n\r\nHere we see the leading zeros are not truncated and the field is treated as a string rather than a number. \r\n\r\nAny input on why this is happening?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ssbc/ssb-server/issues/comments/461282932","html_url":"https://github.com/ssbc/ssb-server/issues/627#issuecomment-461282932","issue_url":"https://api.github.com/repos/ssbc/ssb-server/issues/627","id":461282932,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2MTI4MjkzMg==","user":{"login":"dominictarr","id":259374,"node_id":"MDQ6VXNlcjI1OTM3NA==","avatar_url":"https://avatars3.githubusercontent.com/u/259374?v=4","gravatar_id":"","url":"https://api.github.com/users/dominictarr","html_url":"https://github.com/dominictarr","followers_url":"https://api.github.com/users/dominictarr/followers","following_url":"https://api.github.com/users/dominictarr/following{/other_user}","gists_url":"https://api.github.com/users/dominictarr/gists{/gist_id}","starred_url":"https://api.github.com/users/dominictarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominictarr/subscriptions","organizations_url":"https://api.github.com/users/dominictarr/orgs","repos_url":"https://api.github.com/users/dominictarr/repos","events_url":"https://api.github.com/users/dominictarr/events{/privacy}","received_events_url":"https://api.github.com/users/dominictarr/received_events","type":"User","site_admin":false},"created_at":"2019-02-07T04:17:41Z","updated_at":"2019-02-07T04:17:41Z","author_association":"MEMBER","body":"@NiklasKunkel you'd have had to have done `npm install ssb-server -g` recently (this name depends on some recent refactoring...  mid december)"}}
other: {"actor":{"display_login":"dominictarr"}}