{"action":"created","issue":{"url":"https://api.github.com/repos/ripple/ripple-lib/issues/523","labels_url":"https://api.github.com/repos/ripple/ripple-lib/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/ripple/ripple-lib/issues/523/comments","events_url":"https://api.github.com/repos/ripple/ripple-lib/issues/523/events","html_url":"https://github.com/ripple/ripple-lib/issues/523","id":102667879,"number":523,"title":"Uncaught error: tejMaxFeeExceeded","user":{"login":"tuloski","id":6544139,"avatar_url":"https://avatars.githubusercontent.com/u/6544139?v=3","gravatar_id":"","url":"https://api.github.com/users/tuloski","html_url":"https://github.com/tuloski","followers_url":"https://api.github.com/users/tuloski/followers","following_url":"https://api.github.com/users/tuloski/following{/other_user}","gists_url":"https://api.github.com/users/tuloski/gists{/gist_id}","starred_url":"https://api.github.com/users/tuloski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuloski/subscriptions","organizations_url":"https://api.github.com/users/tuloski/orgs","repos_url":"https://api.github.com/users/tuloski/repos","events_url":"https://api.github.com/users/tuloski/events{/privacy}","received_events_url":"https://api.github.com/users/tuloski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-23T22:39:32Z","updated_at":"2015-08-24T18:57:38Z","closed_at":null,"body":"Sometimes it happens an uncaught error with transaction fee exceeded but not always. I noticed from the error of the transaction that when the error happens there is a different tej message.\r\nBelow the error that doesn't cause the uncaught event:\r\n\r\n```\r\nReport error transaction: {\"result\":\"tejMaxFeeExceeded\",\"result_message\":\"Max fee exceeded\",\"engine_result\":\"tejMaxFeeExceeded\",\"engine_result_message\":\"Max fee exceeded\",\"message\":\"Max fee exceeded\",\"tx_json\":{\"Flags\":0,\"TransactionType\":\"OfferCreate\",\"Account\":\"rXXX\",\"TakerGets\":\"XXX\",\"TakerPays\":{\"value\":\"XXX\",\"currency\":\"XXX\",\"issuer\":\"XXX\"},\"OfferSequence\":25572,\"Sequence\":25573,\"SigningPubKey\":\"XXX\",\"Fee\":\"13500\"}}\r\n```\r\n\r\nBelow the error that triggers the uncaught event, and the stack trace:\r\n```\r\nReport error transaction: {\"result\":\"tejMaxFeeExceeded\",\"result_message\":\"Error\",\"engine_result\":\"tejMaxFeeExceeded\",\"engine_result_message\":\"Error\",\"message\":\"Error\"}\r\n\r\nevents.js:74\r\n        throw TypeError('Uncaught, unspecified \"error\" event.');\r\n              ^\r\nTypeError: Uncaught, unspecified \"error\" event.\r\n    at TypeError (<anonymous>)\r\n    at Transaction.EventEmitter.emit (events.js:74:15)\r\n    at Transaction.<anonymous> (/home/odroid/node_modules/ripple-lib/dist/npm/transactionmanager.js:194:19)\r\n    at Transaction.g (events.js:180:16)\r\n    at Transaction.EventEmitter.emit (events.js:117:20)\r\n    at TransactionManager._request (/home/odroid/node_modules/ripple-lib/dist/npm/transactionmanager.js:666:6)\r\n    at resubmitTransaction (/home/odroid/node_modules/ripple-lib/dist/npm/transactionmanager.js:479:10)\r\n    at iterate (/home/odroid/node_modules/ripple-lib/node_modules/async/lib/async.js:146:13)\r\n    at Object.async.eachSeries (/home/odroid/node_modules/ripple-lib/node_modules/async/lib/async.js:162:9)\r\n    at /home/odroid/node_modules/ripple-lib/dist/npm/transactionmanager.js:483:11\r\n```\r\n\r\nMaybe the fault is of rippled that returns a strange tej message.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26108401-uncaught-error-tejmaxfeeexceeded?utm_campaign=plugin&utm_content=tracker%2F323756&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F323756&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/ripple/ripple-lib/issues/comments/134339389","html_url":"https://github.com/ripple/ripple-lib/issues/523#issuecomment-134339389","issue_url":"https://api.github.com/repos/ripple/ripple-lib/issues/523","id":134339389,"user":{"login":"clark800","id":1238722,"avatar_url":"https://avatars.githubusercontent.com/u/1238722?v=3","gravatar_id":"","url":"https://api.github.com/users/clark800","html_url":"https://github.com/clark800","followers_url":"https://api.github.com/users/clark800/followers","following_url":"https://api.github.com/users/clark800/following{/other_user}","gists_url":"https://api.github.com/users/clark800/gists{/gist_id}","starred_url":"https://api.github.com/users/clark800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clark800/subscriptions","organizations_url":"https://api.github.com/users/clark800/orgs","repos_url":"https://api.github.com/users/clark800/repos","events_url":"https://api.github.com/users/clark800/events{/privacy}","received_events_url":"https://api.github.com/users/clark800/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T18:57:38Z","updated_at":"2015-08-24T18:57:38Z","body":"Have you tried adding this?\r\n```\r\n  transaction.on('error', function(error) {\r\n    console.log(error);\r\n  });\r\n```"}}