Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Json Returned: Poloniex in "Maintenance Mode" #198

Open
s4w3d0ff opened this issue Jun 6, 2019 · 0 comments
Open

Invalid Json Returned: Poloniex in "Maintenance Mode" #198

s4w3d0ff opened this issue Jun 6, 2019 · 0 comments
Labels
bug Something is not behaving as it should in the code serverside Stems from a poloniex server issue

Comments

@s4w3d0ff
Copy link
Owner

s4w3d0ff commented Jun 6, 2019

>>> 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">&copy; 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
>>>
@s4w3d0ff s4w3d0ff added bug Something is not behaving as it should in the code serverside Stems from a poloniex server issue labels Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not behaving as it should in the code serverside Stems from a poloniex server issue
Projects
None yet
Development

No branches or pull requests

1 participant