{"action":"created","issue":{"url":"https://api.github.com/repos/msgilligan/OmniTradeJS/issues/1","labels_url":"https://api.github.com/repos/msgilligan/OmniTradeJS/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/msgilligan/OmniTradeJS/issues/1/comments","events_url":"https://api.github.com/repos/msgilligan/OmniTradeJS/issues/1/events","html_url":"https://github.com/msgilligan/OmniTradeJS/issues/1","id":122781447,"number":1,"title":"OmniTests.js doesn't start","user":{"login":"dexX7","id":5836089,"avatar_url":"https://avatars.githubusercontent.com/u/5836089?v=3","gravatar_id":"","url":"https://api.github.com/users/dexX7","html_url":"https://github.com/dexX7","followers_url":"https://api.github.com/users/dexX7/followers","following_url":"https://api.github.com/users/dexX7/following{/other_user}","gists_url":"https://api.github.com/users/dexX7/gists{/gist_id}","starred_url":"https://api.github.com/users/dexX7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dexX7/subscriptions","organizations_url":"https://api.github.com/users/dexX7/orgs","repos_url":"https://api.github.com/users/dexX7/repos","events_url":"https://api.github.com/users/dexX7/events{/privacy}","received_events_url":"https://api.github.com/users/dexX7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-17T17:18:53Z","updated_at":"2015-12-21T20:35:54Z","closed_at":null,"body":"When trying to run `OmniTests.js`, then the following exception is thrown:\r\n```\r\nmodule.js:340\r\n    throw err;\r\n          ^\r\nError: Cannot find module './Exchanges/OmniRPC.js'\r\n    at Function.Module._resolveFilename (module.js:338:15)\r\n    at Function.Module._load (module.js:280:25)\r\n    at Module.require (module.js:364:17)\r\n    at require (module.js:380:17)\r\n    at Object.<anonymous> (/root/OmniTradeJS/OmniTests.js:1:74)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n```\r\n\r\nWhen renaming and moving `omnirpc.js` into `./Exchanges/OmniRPC.js`, and starting `OmniTests.js`, the following errors pop up:\r\n```\r\n\r\n/root/OmniTradeJS/Exchanges/OmniRPC.js:52\r\nfunction call(rpcMethod, params){\r\n^^^^^^^^\r\nSyntaxError: Unexpected token function\r\n    at Module._compile (module.js:439:25)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Module.require (module.js:364:17)\r\n    at require (module.js:380:17)\r\n    at Object.<anonymous> (/root/OmniTradeJS/OmniTests.js:1:74)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n```"},"comment":{"url":"https://api.github.com/repos/msgilligan/OmniTradeJS/issues/comments/166410462","html_url":"https://github.com/msgilligan/OmniTradeJS/issues/1#issuecomment-166410462","issue_url":"https://api.github.com/repos/msgilligan/OmniTradeJS/issues/1","id":166410462,"user":{"login":"dexX7","id":5836089,"avatar_url":"https://avatars.githubusercontent.com/u/5836089?v=3","gravatar_id":"","url":"https://api.github.com/users/dexX7","html_url":"https://github.com/dexX7","followers_url":"https://api.github.com/users/dexX7/followers","following_url":"https://api.github.com/users/dexX7/following{/other_user}","gists_url":"https://api.github.com/users/dexX7/gists{/gist_id}","starred_url":"https://api.github.com/users/dexX7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dexX7/subscriptions","organizations_url":"https://api.github.com/users/dexX7/orgs","repos_url":"https://api.github.com/users/dexX7/repos","events_url":"https://api.github.com/users/dexX7/events{/privacy}","received_events_url":"https://api.github.com/users/dexX7/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T20:35:54Z","updated_at":"2015-12-21T20:35:54Z","body":"Hmm.. it seems to work, more or less. These are the changes I made:\r\n```diff\r\nroot@ubuntu-1gb-fra1-01:~/OmniTradeJS# git diff\r\ndiff --git a/Exchanges/OmniRPC.js b/Exchanges/OmniRPC.js\r\nindex 58be38d..0b650d6 100644\r\n--- a/Exchanges/OmniRPC.js\r\n+++ b/Exchanges/OmniRPC.js\r\n@@ -1,7 +1,7 @@\r\n var bitcoin = require('bitcoin');\r\n\r\n-var user = '<your user here>'\r\n-var pass = '<your password here>'\r\n+var user = 'bitcoinrpc'\r\n+var pass = 'pass'\r\n\r\n var Omni = {}\r\n\r\ndiff --git a/OmniTests.js b/OmniTests.js\r\nindex a8d3a63..8ced995 100644\r\n--- a/OmniTests.js\r\n+++ b/OmniTests.js\r\n@@ -14,7 +14,7 @@ var addresses = []\r\n\r\n var suffixes = ['credits','peso','dollar','yuan','yen','pound','schilling','won']\r\n\r\n-var address = \"n4Po8andi3akpQBxzBWXbQBttF9LueXqyo\"\r\n+var address = \"mwaDr5GEJER133FJJKaUB6Rg7DbGXa6JYa\"\r\n\r\n var address2 = ''\r\n```\r\n\r\nWhen running:\r\n```\r\nroot@ubuntu-1gb-fra1-01:~/OmniTradeJS# node OmniTests.js\r\n```\r\n\r\nThen it stops here without further output:\r\n```\r\n{ '': 0.0149 }\r\n{ '': 0.0149 }\r\n{ [Error: value is type int, expected str] code: -1 }\r\n[]\r\n```"}}