Mar-07-2022, 10:05 AM
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?