File /usr/lib/python3.10/json/decoder.py:337, in JSONDecoder.decode(self, s, _w)
333 """Return the Python representation of s (a str instance
334 containing a JSON document).
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
File /usr/lib/python3.10/json/decoder.py:355, in JSONDecoder.raw_decode(self, s, idx)
354 except StopIteration as err:
--> 355 raise JSONDecodeError("Expecting value", s, err.value) from None
356 return obj, end
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
File ~/.local/lib/python3.10/site-packages/poloniex/init.py:373, in Poloniex.returnBalances(self)
371 def returnBalances(self):
372 """ Returns all of your available balances."""
--> 373 return self.call('returnBalances')
File ~/.local/lib/python3.10/site-packages/poloniex/init.py:156, in PoloniexBase._retry..retrying(*args, **kwargs)
153 for delay in _chain(retryDelays, [None]):
154 try:
155 # attempt call
--> 156 return func(*args, **kwargs)
158 # we need to try again
159 except RequestException as problem:
File ~/.local/lib/python3.10/site-packages/poloniex/init.py:220, in PoloniexBase.call(self, command, args)
217 ret = self.session.post(**payload)
219 # return data
--> 220 return self._handleReturned(ret)
222 # public?
223 if cmdType == 'Public':
224 # encode url
File ~/.local/lib/python3.10/site-packages/poloniex/init.py:275, in PoloniexBase._handleReturned(self, data)
273 except:
274 self.logger.error(data.text)
--> 275 raise PoloniexError('Invalid json response returned')
277 # check if poloniex returned an error
278 if 'error' in out: