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

Unclear error during downloading data #266

Open
Mr-S-Mirzoev opened this issue Mar 14, 2022 · 2 comments
Open

Unclear error during downloading data #266

Mr-S-Mirzoev opened this issue Mar 14, 2022 · 2 comments
Labels
client Issues related to secedgar client

Comments

@Mr-S-Mirzoev
Copy link

Describe the bug
Unclear error during using filings.save()

To Reproduce
During using the library as follows:
my_filings = filings(cik_lookup="V", filing_type=FilingType.FILING_10K, user_agent="email@gmail.com",) my_filings.save(".")

I'm experiencing the following error:
----> 5 my_filings.save(".")

9 frames
/usr/lib/python3.7/json/decoder.py in raw_decode(self, s, idx)
353 obj, end = self.scan_once(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)

I'm suspecting that there has been a rate abuse from my side, but it's definitely not clear from the exception

Expected behavior
I would expect an exception with response from server as description

Desktop (please complete the following information):
Colab Linux node

@kuatroka
Copy link

Just in case, recreate this on your local machine and see if you still get the same error. I had a similar experience with Colab but using a different library to download the SEC data. Once moved to the local environment, all went ok

@jackmoody11
Copy link
Member

@Mr-S-Mirzoev have you tried this outside of Colab?

@jackmoody11 jackmoody11 added the client Issues related to secedgar client label May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Issues related to secedgar client
Projects
None yet
Development

No branches or pull requests

3 participants