{"action":"created","issue":{"url":"https://api.github.com/repos/FactomProject/WorkItems/issues/556","labels_url":"https://api.github.com/repos/FactomProject/WorkItems/issues/556/labels{/name}","comments_url":"https://api.github.com/repos/FactomProject/WorkItems/issues/556/comments","events_url":"https://api.github.com/repos/FactomProject/WorkItems/issues/556/events","html_url":"https://github.com/FactomProject/WorkItems/issues/556","id":96696701,"number":556,"title":"Fix wsapi.go making nil pointer dereferences","user":{"login":"ThePiachu","id":964559,"avatar_url":"https://avatars.githubusercontent.com/u/964559?v=3","gravatar_id":"","url":"https://api.github.com/users/ThePiachu","html_url":"https://github.com/ThePiachu","followers_url":"https://api.github.com/users/ThePiachu/followers","following_url":"https://api.github.com/users/ThePiachu/following{/other_user}","gists_url":"https://api.github.com/users/ThePiachu/gists{/gist_id}","starred_url":"https://api.github.com/users/ThePiachu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThePiachu/subscriptions","organizations_url":"https://api.github.com/users/ThePiachu/orgs","repos_url":"https://api.github.com/users/ThePiachu/repos","events_url":"https://api.github.com/users/ThePiachu/events{/privacy}","received_events_url":"https://api.github.com/users/ThePiachu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-23T00:20:14Z","updated_at":"2015-07-23T01:26:11Z","closed_at":"2015-07-23T01:26:10Z","body":"After testing the Factom Explorer, I ran into this error while making a call to factom.GetEBlock:\r\n\r\n2015/07/22 17:13:38 Handler crashed with error runtime error: invalid memory address or nil pointer dereference\r\n2015/07/22 17:13:38 c:/go/src/runtime/asm_amd64.s 401\r\n2015/07/22 17:13:38 c:/go/src/runtime/panic.go 387\r\n2015/07/22 17:13:38 c:/go/src/runtime/panic.go 42\r\n2015/07/22 17:13:38 c:/go/src/runtime/os_windows.go 42\r\n2015/07/22 17:13:38 C:/GoogleAppEngine/gopath/src/github.com/FactomProject/FactomCode/wsapi/wsapi.go 306\r\n2015/07/22 17:13:38 c:/go/src/runtime/asm_amd64.s 402\r\n2015/07/22 17:13:38 c:/go/src/reflect/value.go 419\r\n2015/07/22 17:13:38 c:/go/src/reflect/value.go 296\r\n2015/07/22 17:13:38 C:/GoogleAppEngine/gopath/src/github.com/hoisie/web/server.go 216\r\n2015/07/22 17:13:38 C:/GoogleAppEngine/gopath/src/github.com/hoisie/web/server.go 361\r\n2015/07/22 17:13:38 C:/GoogleAppEngine/gopath/src/github.com/hoisie/web/server.go 94\r\n2015/07/22 17:13:38 C:/GoogleAppEngine/gopath/src/github.com/hoisie/web/server.go 89\r\n2015/07/22 17:13:38 c:/go/src/net/http/server.go 1541\r\n2015/07/22 17:13:38 c:/go/src/net/http/server.go 1703\r\n2015/07/22 17:13:38 c:/go/src/net/http/server.go 1204\r\n2015/07/22 17:13:38 c:/go/src/runtime/asm_amd64.s 2232\r\n2015/07/22 17:13:38 127.0.0.1 -  GET /v1/entry-block-by-keymr/aadd2bd3297b48da33e0169e2efaead6b3a4e46bb97c03cea0bfa53c779da958 - 4.0002ms"},"comment":{"url":"https://api.github.com/repos/FactomProject/WorkItems/issues/comments/123925455","html_url":"https://github.com/FactomProject/WorkItems/issues/556#issuecomment-123925455","issue_url":"https://api.github.com/repos/FactomProject/WorkItems/issues/556","id":123925455,"user":{"login":"ThePiachu","id":964559,"avatar_url":"https://avatars.githubusercontent.com/u/964559?v=3","gravatar_id":"","url":"https://api.github.com/users/ThePiachu","html_url":"https://github.com/ThePiachu","followers_url":"https://api.github.com/users/ThePiachu/followers","following_url":"https://api.github.com/users/ThePiachu/following{/other_user}","gists_url":"https://api.github.com/users/ThePiachu/gists{/gist_id}","starred_url":"https://api.github.com/users/ThePiachu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThePiachu/subscriptions","organizations_url":"https://api.github.com/users/ThePiachu/orgs","repos_url":"https://api.github.com/users/ThePiachu/repos","events_url":"https://api.github.com/users/ThePiachu/events{/privacy}","received_events_url":"https://api.github.com/users/ThePiachu/received_events","type":"User","site_admin":false},"created_at":"2015-07-23T01:26:10Z","updated_at":"2015-07-23T01:26:10Z","body":"Turns out the error was caused by FetchEBlockByMR not catching ANY errors and instead returning nil. Fixed in https://github.com/FactomProject/FactomCode/commit/d9b2b27b157024a8b1f3d3a0c9fe852cc1e7a44b"}}