question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: argument of type 'NoneType' is not iterable

See original GitHub issue
Welcome to Poloniex Lending Bot
2017-06-27 04:21:23 Error: argument of type 'NoneType' is not iterable Requesting returnAvailableAccountBalances
Traceback (most recent call last):
  File "/home/.../poloniexlendingbot/lendingbot.py", line 78, in <module>
    Lending.cancel_all()
  File "/home/.../poloniexlendingbot/modules/Lending.py", line 177, in cancel_all
    available_balances = api.return_available_account_balances('lending')
  File "/home/.../poloniexlendingbot/modules/Poloniex.py", line 168, in return_available_account_balances
    balances = self.api_query('returnAvailableAccountBalances', {"account": account})
  File "/home/.../poloniexlendingbot/modules/Poloniex.py", line 43, in new_method
    return method(self, *arg, **kws)
  File "/home/.../poloniexlendingbot/modules/Poloniex.py", line 125, in api_query
    json_ret = _read_response(ret)
  File "/home/.../poloniexlendingbot/modules/Poloniex.py", line 90, in _read_response
    if 'error' in data:
TypeError: argument of type 'NoneType' is not iterable
Unhandled error, please open a Github issue so we can fix it!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mchl18commented, Jul 26, 2017

do you mean this?

#Local Market Analysis: Choose which coins to record the market of in order to analyse them and compute a recommended lending rate.
#Enter ALL to analyse all coins, enter ACTIVE to analyse the markets of any coins you have in your lending account when the bot starts, these can be mixed.
analyseCurrencies = ACTIVE

i just tried but couldn’t reproduce did you have any coins in you lending account?

can you include the config WITHOUT API key and secret

edit: i also couldn’t reproduce with no coins in lending, it just show me the coin already lent. did you have coins lent?

1reaction
JCBauzacommented, Jun 27, 2017

To replicate the issue, set the currencies to analyze to ACTIVE and that’s where it fails based on where the error is being generated. I changed it to ALL and it hasn’t immediately failed. I’ll continue to monitor and report back if there is anything to add. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - TypeError: argument of type 'NoneType' is not iterable
The problem is that your pickEasy function does not return anything. In Python, a method that didn't return anything returns a NoneType. I...
Read more >
How to Fix TypeError in Python: NoneType Object Is Not Iterable
The Python TypeError: NoneType Object Is Not Iterable is an exception that occurs when trying to iterate over a None value. Since in...
Read more >
TypeError: argument of type 'NoneType' is not iterable
The python error TypeError: argument of type 'NoneType' is not iterable occurs when the membership operators check a value in a NoneType variable....
Read more >
Python TypeError: 'NoneType' object is not iterable Solution | CK
The TypeError: 'NoneType' object is not iterable error is raised when you try to iterate over an object whose value is equal to...
Read more >
TypeError: argument of type 'NoneType' is not iterable #696
When I try to import whisper I get this error: if` '/' in name or '\\' in name: TypeError: argument of type 'NoneType'...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found