Getting error in my code

Hi Team,

I am new here .

Can you please help me in below issue as Iam trying to create issue in jira by using REST API in python (editor pycharm)

traceback (most recent call last):
*** File “C:\Users\sgupta4\PycharmProjects\pythonProject1\create issue-jira\Jira create issue.py”, line 150, in
**
*** print(json.dumps(json.loads(response.text)))***
*** File “C:\Program Files\Python39\lib\json_init_.py”, line 346, in loads***
*** return _default_decoder.decode(s)***
*** File “C:\Program Files\Python39\lib\json\decoder.py”, line 337, in decode***
*** obj, end = self.raw_decode(s, idx=_w(s, 0).end())***
*** File “C:\Program Files\Python39\lib\json\decoder.py”, line 355, in raw_decode***
*** raise JSONDecodeError(“Expecting value”, s, err.value) from None***
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Please let me know ,where i am going wrong and what is missed here .

Thanks
Shruti

@shrutigupta welcome to the Atlassian developer community.

Is this Python requests? Maybe check response.status_code before looking at the payload. Are you getting a 200? If so, then maybe just print the response.text instead of trying to decode/encode with JSON. Once you understand what is in the response body, then you can just use response.json().

Thank you so much .Iam able to create issue .

Appreciate your help!