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

error message when trying to get eco calendar #619

Open
Jacques2101 opened this issue Dec 5, 2022 · 0 comments
Open

error message when trying to get eco calendar #619

Jacques2101 opened this issue Dec 5, 2022 · 0 comments

Comments

@Jacques2101
Copy link

I am trying to get eco calendar with

df = investpy.economic_calendar(from_date='05/12/2022',
                                to_date='06/12/2022')

df

but get an error message:

utput exceeds the size limit. Open the full output data in a text editor
---------------------------------------------------------------------------
JSONDecodeError                           Traceback (most recent call last)
~/opt/anaconda3/envs/data/lib/python3.8/site-packages/requests/models.py in json(self, **kwargs)
    970         try:
--> 971             return complexjson.loads(self.text, **kwargs)
    972         except JSONDecodeError as e:

~/opt/anaconda3/envs/data/lib/python3.8/json/__init__.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    356             parse_constant is None and object_pairs_hook is None and not kw):
--> 357         return _default_decoder.decode(s)
    358     if cls is None:

~/opt/anaconda3/envs/data/lib/python3.8/json/decoder.py in decode(self, s, _w)
    336         """
--> 337         obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    338         end = _w(s, end).end()

~/opt/anaconda3/envs/data/lib/python3.8/json/decoder.py in 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:
...
--> 975             raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
    976 
    977     @property
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

No branches or pull requests

1 participant