Skip to content

Not able to execute any function. Node used: http://eos.greymass.com (Error: Only Absolute URLs are supported) (Traceback Attached) #3

@outlier89

Description

@outlier89

GetBalanceException Traceback (most recent call last)
in ()
1 #eos.get_currency_balance()
----> 2 eos.get_currency_balance('eosio.token', 'eoscanadacom', 'EOS')

~\Anaconda3\lib\site-packages\eosjs_python_init_.py in get_currency_balance(self, code, account, symbol)
98 return json_value_ans
99 else:
--> 100 raise GetBalanceException(response.stderr)
101
102

GetBalanceException: b'api < error \t 'https://eos.greymass.com:443\'/v1/chain/get_info {}\nError: only absolute urls are supported\n at C:\Users\admin\node_modules\node-fetch\index.js:54:10\n at new Promise ()\n at new Fetch (C:\Users\admin\node_modules\node-fetch\index.js:49:9)\n at Fetch (C:\Users\admin\node_modules\node-fetch\index.js:37:10)\n at module.exports (C:\Users\admin\node_modules\isomorphic-fetch\fetch-npm-node.js:8:19)\n at Object.getInfo (C:\Users\admin\node_modules\eosjs-api\lib\apigen.js:90:5)\n at checkChainId (C:\Users\admin\node_modules\eosjs\lib\index.js:431:11)\n at createEos (C:\Users\admin\node_modules\eosjs\lib\index.js:85:5)\n at Eos (C:\Users\admin\node_modules\eosjs\lib\index.js:42:10)\n at Object. (C:\Users\admin\Anaconda3\lib\site-packages\eosjs_python\js\GetCurrencyBalance.js:10:7)\napi < error \t 'https://eos.greymass.com:443\'/v1/chain/get_currency_balance {"code":"'eosio.token'","account":"'eoscanadacom'","symbol":"'EOS'","json":true}\nError: only absolute urls are supported\n at C:\Users\admin\node_modules\node-fetch\index.js:54:10\n at new Promise ()\n at new Fetch (C:\Users\admin\node_modules\node-fetch\index.js:49:9)\n at Fetch (C:\Users\admin\node_modules\node-fetch\index.js:37:10)\n at module.exports (C:\Users\admin\node_modules\isomorphic-fetch\fetch-npm-node.js:8:19)\n at Object.getCurrencyBalance (C:\Users\admin\node_modules\eosjs-api\lib\apigen.js:90:5)\n at Object. (C:\Users\admin\Anaconda3\lib\site-packages\eosjs_python\js\GetCurrencyBalance.js:15:5)\n at Module._compile (module.js:643:30)\n at Object.Module._extensions..js (module.js:654:10)\n at Module.load (module.js:556:32)\nError: only absolute urls are supported\n at C:\Users\admin\node_modules\node-fetch\index.js:54:10\n at new Promise ()\n at new Fetch (C:\Users\admin\node_modules\node-fetch\index.js:49:9)\n at Fetch (C:\Users\admin\node_modules\node-fetch\index.js:37:10)\n at module.exports (C:\Users\admin\node_modules\isomorphic-fetch\fetch-npm-node.js:8:19)\n at Object.getInfo (C:\Users\admin\node_modules\eosjs-api\lib\apigen.js:90:5)\n at checkChainId (C:\Users\admin\node_modules\eosjs\lib\index.js:431:11)\n at createEos (C:\Users\admin\node_modules\eosjs\lib\index.js:85:5)\n at Eos (C:\Users\admin\node_modules\eosjs\lib\index.js:42:10)\n at Object. (C:\Users\admin\Anaconda3\lib\site-packages\eosjs_python\js\GetCurrencyBalance.js:10:7)\nError: only absolute urls are supported\n at C:\Users\admin\node_modules\node-fetch\index.js:54:10\n at new Promise ()\n at new Fetch (C:\Users\admin\node_modules\node-fetch\index.js:49:9)\n at Fetch (C:\Users\admin\node_modules\node-fetch\index.js:37:10)\n at module.exports (C:\Users\admin\node_modules\isomorphic-fetch\fetch-npm-node.js:8:19)\n at Object.getCurrencyBalance (C:\Users\admin\node_modules\eosjs-api\lib\apigen.js:90:5)\n at Object. (C:\Users\admin\Anaconda3\lib\site-packages\eosjs_python\js\GetCurrencyBalance.js:15:5)\n at Module._compile (module.js:643:30)\n at Object.Module._extensions..js (module.js:654:10)\n at Module.load (module.js:556:32)\n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions