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
Community Members
Community Events
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:



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:

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

Atlassian Community Events