Skip to content

Comment configurer le format json long #183

@dthonon

Description

@dthonon

In GitLab by @mgageo on Dec 15, 2021, 10:57

J'ai modifié le fichier yaml

json_format: long

file:
# Enable storing to file
enabled: true

database:
# Enable storing to database
enabled: false

mais j'ai cette erreur

2021-12-15 10:41:21,610 - INFO - transfer_vn.store_postgresql - Reading from local_admin_units of site fb
Job "full_download_1 (trigger: date[2021-12-15 09:41:20 UTC], next run at: 2021-12-15 09:41:20 UTC)" raised an exception
Traceback (most recent call last):
File "/home/xfer38/VN_env/lib/python3.7/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/home/xfer38/VN_env/lib/python3.7/site-packages/export_vn/transfer_vn.py", line 385, in full_download_1
downloader = ctrl(cfg, store_all)
File "/home/xfer38/VN_env/lib/python3.7/site-packages/export_vn/download_vn.py", line 834, in init
self._l_a_units = ReadPostgresql(self._config).read("local_admin_units")
File "/home/xfer38/VN_env/lib/python3.7/site-packages/export_vn/store_postgresql.py", line 799, in read
metadata = self._table_defs[controler]["metadata"]
AttributeError: 'ReadPostgresql' object has no attribute '_table_defs'
2021-12-15 10:41:21,611 - ERROR - transfer_vn - The job Places_fb crashed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions