{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/web3.js/issues/1134","repository_url":"https://api.github.com/repos/ethereum/web3.js","labels_url":"https://api.github.com/repos/ethereum/web3.js/issues/1134/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/web3.js/issues/1134/comments","events_url":"https://api.github.com/repos/ethereum/web3.js/issues/1134/events","html_url":"https://github.com/ethereum/web3.js/issues/1134","id":267495030,"number":1134,"title":"sendSignedTransaction is not working","user":{"login":"NicholasJarr","id":28270050,"avatar_url":"https://avatars1.githubusercontent.com/u/28270050?v=4","gravatar_id":"","url":"https://api.github.com/users/NicholasJarr","html_url":"https://github.com/NicholasJarr","followers_url":"https://api.github.com/users/NicholasJarr/followers","following_url":"https://api.github.com/users/NicholasJarr/following{/other_user}","gists_url":"https://api.github.com/users/NicholasJarr/gists{/gist_id}","starred_url":"https://api.github.com/users/NicholasJarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicholasJarr/subscriptions","organizations_url":"https://api.github.com/users/NicholasJarr/orgs","repos_url":"https://api.github.com/users/NicholasJarr/repos","events_url":"https://api.github.com/users/NicholasJarr/events{/privacy}","received_events_url":"https://api.github.com/users/NicholasJarr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-10-22T20:13:50Z","updated_at":"2017-11-22T12:30:36Z","closed_at":null,"author_association":"NONE","body":"When I call sendSignedTransaction it throws: `invalid argument 0: json: cannot unmarshal hex string of odd length into Go value of type hexutil.Bytes`. I'm using geth with a private chain (with the -dev flag). The web3.js was installed with npm and the version is: ^1.0.0-beta.24.\r\nI get the private key from the decrypt method and using the JSON from the keystore. start is the contract function that I'm calling. It has one argument (an int) and it is not payable. I think there might something wrong with the rawTransaction that is returned with the signTransaction method.\r\n\r\n```javascript\r\nvar admin = \"0x2694fC48505267C8159850aC7Df2c280a17d2C46\";\r\nvar contract_address = \"0x19496da364962A5Ac96139775F8d50d5d31605f9\";\r\nvar tx = {\r\n    from: admin,\r\n    to: contract_address,\r\n    gas: 184000,\r\n    data: start.encodeABI(),\r\n    chainId: \"1337\"\r\n};\r\nweb3.eth.accounts.signTransaction(tx, private_key).then((hash) =>{\r\n    web3.eth.sendSignedTransaction(hash.rawTransaction).then((receipt) =>{\r\n        resolve();\r\n    }, (error) =>{\r\n        console.log(error);\r\n        reject(500);\r\n    });\r\n}, (error) =>{\r\n    reject(500);\r\n});\r\nhash.rawTransaction == \"0xf986.84d808302cec09419496da364962a5ac96139775f8d50d5d31605f980a495805dad000000000000000000000000000000000000000000000000000000000000001481.8a95a00f9daa90306d103f908f6c8064a5ce005e7608ea14ddf469a73943e2a2ea54b5a012de7959ceee8d3d685d6622d77949a879b364165bcfd6f9fea88c4d1ea51aa3\"\r\n```\r\n            "},"comment":{"url":"https://api.github.com/repos/ethereum/web3.js/issues/comments/346336754","html_url":"https://github.com/ethereum/web3.js/issues/1134#issuecomment-346336754","issue_url":"https://api.github.com/repos/ethereum/web3.js/issues/1134","id":346336754,"user":{"login":"daragao","id":3007280,"avatar_url":"https://avatars3.githubusercontent.com/u/3007280?v=4","gravatar_id":"","url":"https://api.github.com/users/daragao","html_url":"https://github.com/daragao","followers_url":"https://api.github.com/users/daragao/followers","following_url":"https://api.github.com/users/daragao/following{/other_user}","gists_url":"https://api.github.com/users/daragao/gists{/gist_id}","starred_url":"https://api.github.com/users/daragao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daragao/subscriptions","organizations_url":"https://api.github.com/users/daragao/orgs","repos_url":"https://api.github.com/users/daragao/repos","events_url":"https://api.github.com/users/daragao/events{/privacy}","received_events_url":"https://api.github.com/users/daragao/received_events","type":"User","site_admin":false},"created_at":"2017-11-22T12:30:36Z","updated_at":"2017-11-22T12:30:36Z","author_association":"NONE","body":"Anyone found a solution for this?\r\n\r\nIf i use testrpc and add chainId to the transaction object it signs well, but with geth it does not :(\r\nAny ideas?\r\n\r\n"}}
{"actor":{"display_login":"daragao"}}