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:
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: 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)
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.