-
Notifications
You must be signed in to change notification settings - Fork 24
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
json.decoder.JSONDecodeError: Expecting value: line 1 column 2 (char 1) #28
Labels
Comments
Hey! Thanks for flagging this issue. Could you provide a minimal example for this error? |
Also, it looks like you're using a different package? |
Hey,
This is interestingly enough was also happening with questrade_api as well.
I was attempting to use both of them. I also ran this on a different system
with a fresh install of python and got the same error message. Here is an
example of my program:
***********
from qtrade import Questrade
qtrade = Questrade(access_code='pRzav*****X0')
qtrade.get_access_token()
***********
Currently I'm now getting a different error:
***********
 File "/dowload_questrade_data/questrade/questrade_play.py", line 3, in
<module>
qtrade = Questrade(access_code='pRza*****0')
File "/usr/local/lib/python3.7/site-packages/qtrade/questrade.py", line 38,
in __init__
self.get_access_token()
File "/usr/local/lib/python3.7/site-packages/qtrade/questrade.py", line 83,
in get_access_token
data.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 941,
in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url:
https://login.questrade.com/oauth2/token?grant_type=refresh_token&refresh_token=pRza*****X0
***********
So essentially trade is just not initialising at all. Thanks for your help
on this. I am very interested in working with your program.
cr0n
…On Sun, 8 Mar 2020 at 06:12, Jan Borchmann ***@***.***> wrote:
Also, it looks like you're using a different package?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#28?email_source=notifications&email_token=AGER3ZG64W7FHG7VEOXH2MDRGORV7A5CNFSM4LDXL7VKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOEVWPQ#issuecomment-596204350>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGER3ZD5OXCFABO6VHMME2LRGORV7ANCNFSM4LDXL7VA>
.
|
So, I can't reproduce your error. For me, it works fine. Are you sure you're using the right token? |
Any update from your side? Everything is still working fine for me. |
Ok, I am going to close this for now. Please update if you have something else coming up. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
*** Error Output Below ***
*** From 'decoder.py' ***
Issue with line 355:
raise JSONDecodeError("Expecting value", s, err.value) from None
The text was updated successfully, but these errors were encountered: