-
-
Notifications
You must be signed in to change notification settings - Fork 165
Open
Labels
bugSomething is not behaving as it should in the codeSomething is not behaving as it should in the codeserversideStems from a poloniex server issueStems from a poloniex server issue
Description
>>> import poloniex
>>> polo = poloniex.Poloniex()
<!DOCTYPE html>
<html lang="en">
<head>
<title>Poloniex - Bitcoin/Digital Asset Exchange</title>
<meta charset="UTF-8">
<script>window.top!==window.self&&window.top.location.replace(window.self.location.href);</script>...
...</svg>
<h1>Maintenance Mode</h1>
<p>We're working on some updates and will be back shortly.</p>
</div>
</div>
<div class="footer">© Poloniex, LLC. 2018 - Boston, MA, USA</div>
</body>
</html>
Traceback (most recent call last):
File "C:\Users\s4w3d0ff\AppData\Roaming\Python\Python37\site-packages\poloniex\__init__.py", line 267, in _handleReturned
out = _loads(data.text, parse_float=str)
File "C:\Program Files\Python37\lib\json\__init__.py", line 361, in loads
return cls(**kw).decode(s)
File "C:\Program Files\Python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\Python37\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\s4w3d0ff\AppData\Roaming\Python\Python37\site-packages\poloniex\__init__.py", line 696, in __init__
tick = self.returnTicker()
File "C:\Users\s4w3d0ff\AppData\Roaming\Python\Python37\site-packages\poloniex\__init__.py", line 321, in returnTicker
return self.__call__('returnTicker')
File "C:\Users\s4w3d0ff\AppData\Roaming\Python\Python37\site-packages\poloniex\__init__.py", line 155, in retrying
return func(*args, **kwargs)
File "C:\Users\s4w3d0ff\AppData\Roaming\Python\Python37\site-packages\poloniex\__init__.py", line 236, in __call__
return self._handleReturned(ret)
File "C:\Users\s4w3d0ff\AppData\Roaming\Python\Python37\site-packages\poloniex\__init__.py", line 274, in _handleReturned
raise PoloniexError('Invalid json response returned')
poloniex.PoloniexError: Invalid json response returned
>>>
Metadata
Metadata
Assignees
Labels
bugSomething is not behaving as it should in the codeSomething is not behaving as it should in the codeserversideStems from a poloniex server issueStems from a poloniex server issue