Hi,
I'm trying to read json content from a url, however, it is displaying the below error in spite of status 200 (<Response [200]>).
JSONDecodeError: Expecting value
Below is the code:
I'm trying to read json content from a url, however, it is displaying the below error in spite of status 200 (<Response [200]>).
JSONDecodeError: Expecting value
Below is the code:
jUrl_dummy = 'https://abc.dummy.com/rest/api/latest/search?fields=%s&query=%s' fields_dummy = 'key,summary' username = credentials.login['username'] password = credentials.login['password'] query_dummy = ('project = xxx') r_dummy = requests.get(jUrl_dummy % (fields_dummy, query_dummy), auth = (username, password)) print(r_dummy) j_dummy = r_dummy.json() --> This gives the errorCan someone please help with the resolution?
Larz60+ write Mar-07-2022, 01:54 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use BBCodes on future posts.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use BBCodes on future posts.