Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,363,261
Community Members
 
Community Events
168
Community Groups

Getting json.decoder.JSONDecodeError while trying to get all JIRA users using Python Script

Hi All,

I am getting the "json.decoder.JSONDecodeError" when I am trying to fetch all jira users using the below python script.

Here is the code snippet:43.PNG

Here is the error snippet:

44.PNG

 

I tried to find the solution on the Atlassian Community as well as Stackoverflow. Couldn't find any possible solution.

Please provide me any possible solution to fix or tackle the error.

NOTE: We are using JIRA datacenter and I got the code from the following link: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-users-search-get

Thanks in advance!

Shreesh Narayan Singh

(JIRA System Administartor)

1 answer

0 votes

Your JSON object returned "None" hence that error. When that happens, the JSON decoder can not parse NoneType objects. Probably you want to make sure that you're authenticated properly before running the user search. You can use /rest/api/2/myself to give a test and see the type of response your server returns

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events