jackycngai / discord_crypto_alert

This is a discord bot that would check for golden cross and the death cross and send out an alert.
MIT License
2 stars 1 forks source link

Getting a new error just recently. #2

Open WKNiGHT- opened 3 years ago

WKNiGHT- commented 3 years ago

File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, *self._kwargs) File "/home/ubuntu/.local/lib/python3.8/site-packages/multitasking/init.py", line 102, in _run_via_pool return callee(args, kwargs) File "/home/ubuntu/.local/lib/python3.8/site-packages/yfinance/multi.py", line 166, in _download_one_threaded data = _download_one(ticker, start, end, auto_adjust, back_adjust, File "/home/ubuntu/.local/lib/python3.8/site-packages/yfinance/multi.py", line 178, in _download_one return Ticker(ticker).history(period=period, interval=interval, File "/home/ubuntu/.local/lib/python3.8/site-packages/yfinance/base.py", line 155, in history data = data.json() File "/home/ubuntu/.local/lib/python3.8/site-packages/requests/models.py", line 898, in json return complexjson.loads(self.text, kwargs) File "/usr/lib/python3/dist-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

WKNiGHT- commented 3 years ago

Any update on this error.. even tried to roll back some pip packages and didnt fix the issue.

Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner self.run() File "/usr/lib/python3.9/threading.py", line 892, in run self._target(*self._args, **self._kwargs) File "/home/ubuntu/.local/lib/python3.9/site-packages/multitasking/__init__.py", line 102, in _run_via_pool return callee(*args, **kwargs) File "/home/ubuntu/.local/lib/python3.9/site-packages/yfinance/multi.py", line 167, in _download_one_threaded data = _download_one(ticker, start, end, auto_adjust, back_adjust, File "/home/ubuntu/.local/lib/python3.9/site-packages/yfinance/multi.py", line 179, in _download_one return Ticker(ticker).history(period=period, interval=interval, File "/home/ubuntu/.local/lib/python3.9/site-packages/yfinance/base.py", line 156, in history data = data.json() File "/usr/lib/python3/dist-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 518, in loads return _default_decoder.decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) File "/usr/lib/python3/dist-packages/simplejson/scanner.py", line 79, in scan_once return _scan_once(string, idx) File "/usr/lib/python3/dist-packages/simplejson/scanner.py", line 70, in _scan_once raise JSONDecodeError(errmsg, string, idx) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)