Export Jira Issues from Cloud to CSV with "jiraone"

Hello everyone,
I’m trying to follow this article for exporting jira issues from my Cloud instance to CSV file: How to export all issues from Jira via API

I’ve followed this steps:

  • create a config.json file with the credentials and the URL
  • create the script with a valid JQL:
from jiraone import LOGIN, issue_export
import json

file = "config.json"
config = json.load(open(file))
LOGIN(**config)

jql = "project in (BB) order by created DESC"
issue_export(jql=jql)

But when I run the script with python script.py, I encounter these errors:

Traceback (most recent call last):
File "C:\Users\sardo\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\sardo\AppData\Local\Programs\Python\Python37\lib\json\\__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\sardo\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\sardo\AppData\Local\Programs\Python\Python37\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)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "script.py", line 9, in <module>
issue_export(jql=jql)
File "C:\Users\sardo\AppData\Local\Programs\Python\Python37\lib\site-packages\jiraone\reporting.py", line 1403, in export_issues
"what went wrong with reason: {}".format(reason.json()),
File "C:\Users\sardo\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Can someone help me, please?
Python version: 3.7.5
jiraone version: 0.7.2

Thanks!