Skip to content

Conversation

@Paws-Dev
Copy link

@Paws-Dev Paws-Dev commented Jan 21, 2018

Code:
from YoBit import YoBit
login = YoBit(api_key='xxxxx', api_secret='xxxxx')
login.get_info()

Response:
PublicAPI & TradeAPI
Traceback (most recent call last):
File "C:/Users/Padalecki/AppData/Local/Programs/Python/Python36-32/venv/111.py", line 3, in
info = login.ticker('pac_rur')
File "C:\Users\Padalecki\AppData\Local\Programs\Python\Python36-32\lib\site-packages\YoBit_init_.py", line 121, in ticker
return self._api_query_public('ticker', pair)
File "C:\Users\Padalecki\AppData\Local\Programs\Python\Python36-32\lib\site-packages\YoBit_init
.py", line 67, in _api_query_public
return requests.get(request_url).json()
File "C:\Users\Padalecki\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\models.py", line 866, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\Padalecki\AppData\Local\Programs\Python\Python36-32\lib\json_init
.py", line 354, in loads
return _default_decoder.decode(s)
File "C:\Users\Padalecki\AppData\Local\Programs\Python\Python36-32\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Padalecki\AppData\Local\Programs\Python\Python36-32\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Process finished with exit code 1

ADDON:
I think it is about cloudflare protection added recently

So it is cloudflare problem ou YoBit, i will try to integtate cfscrape for now...
But module needs to be updated for clouflare bypassing

ADDON:
So after cfscrape all works fine, please add clouflare bypass, thakyou))

@Paws-Dev Paws-Dev changed the title Problems with Json, API not working Problems with Json, Yobit API not working Jan 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants