-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hello,
I wanted to try this script to import my bank account, but it seems i have some issues to run it
see below :
(myenv) root@fireflyIII-import:~/credit-agricole-importer-0.3.1# python main.py
[23:29:41] Process started, debug=True, save_logs=False
[23:29:42] -> 'Compte de Dépôt' account n°xxxxxxxxxxxxxx
[23:29:42] -> Creating account ... Traceback (most recent call last):
File "/root/credit-agricole-importer-0.3.1/myenv/lib/python3.11/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/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 "/root/credit-agricole-importer-0.3.1/main.py", line 135, in <module>
f3_account = f3_cli.create_account(name, ca_cli.region_id, ca_numeroCompte, ca_account.grandeFamilleCode).get('data')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/credit-agricole-importer-0.3.1/firefly3.py", line 99, in create_account
ca_region = CreditAgricoleRegion(region)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/credit-agricole-importer-0.3.1/creditagricole.py", line 95, in __init__
response = requests.get(url).json()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/credit-agricole-importer-0.3.1/myenv/lib/python3.11/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)
my conf file :
[GlobalSettings]
save-logs = False
max-log-files = 0
debug = True
auto-detect-transfers = True
[CreditAgricole]
bank-department = 80
bank-account-id = xxxxxxxxxxx
bank-password = xxxxxx
import-account-id-list = xxxxxxxxxxx
get-transactions-period-days = 30
max-transactions-per-get = 100
[FireflyIII]
accounts-name-format = Credit Agricole - #bank-account-name#
hostname = http://192.168.x.x:xxxx
personal-token = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[AutoRenameTransaction]
[AutoAssignBudget]
[AutoAssignCategory]
[AutoAssignAccount]
[AutoAssignTags]
Not sure if i'm missing something
Metadata
Metadata
Assignees
Labels
No labels