{"action":"created","issue":{"url":"https://api.github.com/repos/lukehedger/eth-graphql/issues/2","repository_url":"https://api.github.com/repos/lukehedger/eth-graphql","labels_url":"https://api.github.com/repos/lukehedger/eth-graphql/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/lukehedger/eth-graphql/issues/2/comments","events_url":"https://api.github.com/repos/lukehedger/eth-graphql/issues/2/events","html_url":"https://github.com/lukehedger/eth-graphql/issues/2","id":303245882,"number":2,"title":"Error running getTransactionByHash","user":{"login":"adklempner","id":22138672,"avatar_url":"https://avatars2.githubusercontent.com/u/22138672?v=4","gravatar_id":"","url":"https://api.github.com/users/adklempner","html_url":"https://github.com/adklempner","followers_url":"https://api.github.com/users/adklempner/followers","following_url":"https://api.github.com/users/adklempner/following{/other_user}","gists_url":"https://api.github.com/users/adklempner/gists{/gist_id}","starred_url":"https://api.github.com/users/adklempner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adklempner/subscriptions","organizations_url":"https://api.github.com/users/adklempner/orgs","repos_url":"https://api.github.com/users/adklempner/repos","events_url":"https://api.github.com/users/adklempner/events{/privacy}","received_events_url":"https://api.github.com/users/adklempner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-07T20:21:53Z","updated_at":"2018-03-27T11:30:40Z","closed_at":null,"author_association":"NONE","body":"My query\r\n```graphql\r\nquery {\r\n  getTransactionByHash(params:[\"0xe337b7ce9278ce476a11e52cc55790525c7a8df390f3d29845913c52fc2c416a\"]) {\r\n    input\r\n  }\r\n}\r\n```\r\n\r\nExpected output\r\n```graphql\r\n{\r\n  \"data\": {\r\n    \"getTransactionByHash\": {\r\n      \"input\": \"0xb25fa92c000000000000000000000000e89895710fbe0d3811d862feddd5b950de95b6bf000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000047573657200000000000000000000000000000000000000000000000000000000\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nActual\r\n```graphql\r\n{\r\n  \"data\": null,\r\n  \"errors\": [\r\n    {\r\n      \"message\": \"Cannot return null for non-nullable field Query.getTransactionByHash.\",\r\n      \"locations\": [\r\n        {\r\n          \"line\": 3,\r\n          \"column\": 3\r\n        }\r\n      ],\r\n      \"path\": [\r\n        \"getTransactionByHash\"\r\n      ]\r\n    }\r\n  ]\r\n``` \r\n\r\nnodejs error:\r\n```\r\nError: Incorrect number of arguments. Method 'eth_getTransactionByHash' requires exactly 1 arguments. Request specified 2 arguments: [\"0xe337b7ce9278ce476a11e52cc55790525c7a8df390f3d29845913c52fc2c416a\",true,null].\r\n    at getTransactionByHash (/Users/aklempner/Repos/eth-graphql/server/query/getTransactionByHash.js:25:13)\r\n    at process._tickCallback (internal/process/next_tick.js:109:7)\r\n```"},"comment":{"url":"https://api.github.com/repos/lukehedger/eth-graphql/issues/comments/376491333","html_url":"https://github.com/lukehedger/eth-graphql/issues/2#issuecomment-376491333","issue_url":"https://api.github.com/repos/lukehedger/eth-graphql/issues/2","id":376491333,"user":{"login":"lukehedger","id":1913316,"avatar_url":"https://avatars1.githubusercontent.com/u/1913316?v=4","gravatar_id":"","url":"https://api.github.com/users/lukehedger","html_url":"https://github.com/lukehedger","followers_url":"https://api.github.com/users/lukehedger/followers","following_url":"https://api.github.com/users/lukehedger/following{/other_user}","gists_url":"https://api.github.com/users/lukehedger/gists{/gist_id}","starred_url":"https://api.github.com/users/lukehedger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukehedger/subscriptions","organizations_url":"https://api.github.com/users/lukehedger/orgs","repos_url":"https://api.github.com/users/lukehedger/repos","events_url":"https://api.github.com/users/lukehedger/events{/privacy}","received_events_url":"https://api.github.com/users/lukehedger/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T11:30:40Z","updated_at":"2018-03-27T11:30:40Z","author_association":"OWNER","body":"Ah good spot @adklempner! Thanks."}}
{"actor":{"display_login":"lukehedger"}}