I have a dataset that I generate in the FTM format.
Whenever I try to import it with alephclient on a local development server that was just spinned up and brand spanking fresh I get the following error :
api-1 | {"es_req_method": "POST", "es_url": "/actionreaction-collection-v1/_search", "es_req_params": {}, "es_req_body": {"query": {"bool": {"should": [{"match_all": {}}], "must": [], "must_not": [], "filter": [{"term": {"foreign_id": "sirene_unite_legale"}}], "minimum_should_match": 1}}, "post_filter": {"bool": {"filter": []}}, "from": 0, "size": 20, "aggregations": {}, "sort": ["_score", {"label.kw": "asc"}], "highlight": {}, "_source": {"excludes": ["text"]}}, "took": 3, "logger": "aleph.util", "timestamp": "2024-07-24 09:10:04.119815", "endpoint": "collections_api.index", "locale": "en", "trace_id": "aa2ad457-a612-4208-9e94-c9e396751587", "method": "GET", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections?filter:foreign_id=sirene_unite_legale", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:10:04.112026", "path": "/api/2/collections?filter%3Aforeign_id=sirene_unite_legale", "message": "Performed ES request", "severity": "DEBUG"}
api-1 | {"request_logging": true, "logger": "aleph.views.context", "timestamp": "2024-07-24 09:10:04.120958", "endpoint": "collections_api.index", "locale": "en", "trace_id": "aa2ad457-a612-4208-9e94-c9e396751587", "method": "GET", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections?filter:foreign_id=sirene_unite_legale", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "took": 0.00889730453491211, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:10:04.112026", "status": 200, "path": "/api/2/collections?filter%3Aforeign_id=sirene_unite_legale", "time": "2024-07-24T09:10:04.120928", "message": "Request handled", "severity": "INFO"}
api-1 | {"logger": "werkzeug", "timestamp": "2024-07-24 09:10:04.121518", "endpoint": "collections_api.index", "locale": "en", "trace_id": "aa2ad457-a612-4208-9e94-c9e396751587", "method": "GET", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections?filter:foreign_id=sirene_unite_legale", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "took": 0.00889730453491211, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:10:04.112026", "status": 200, "path": "/api/2/collections?filter%3Aforeign_id=sirene_unite_legale", "time": "2024-07-24T09:10:04.120928", "message": "172.18.0.7 - - [24/Jul/2024 09:10:04] \"GET /api/2/collections?filter:foreign_id=sirene_unite_legale HTTP/1.1\" 200 -", "severity": "INFO"}
api-1 | {"logger": "aleph", "timestamp": "2024-07-24 09:10:19.254121", "exception": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 2190, in wsgi_app\n response = self.full_dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1486, in full_dispatch_request\n rv = self.handle_user_exception(e)\n File \"/usr/local/lib/python3.8/dist-packages/flask_cors/extension.py\", line 176, in wrapped_function\n return cors_after_request(app.make_response(f(*args, **kwargs)))\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1484, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1469, in dispatch_request\n return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)\n File \"/aleph/aleph/views/collections_api.py\", line 290, in bulk\n for entity_id in bulk_write(\n File \"/aleph/aleph/logic/processing.py\", line 38, in bulk_write\n entity = model.get_proxy(data, cleaned=(not clean))\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/model.py\", line 141, in get_proxy\n return EntityProxy.from_dict(self, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 498, in from_dict\n return cls(model, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 53, in __init__\n data = dict(data or {})\nValueError: dictionary update sequence element #0 has length 3; 2 is required", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "e2bed91f-6a27-4bb6-98a8-333ea69ba15d", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:10:08.666188", "path": "/api/2/collections/1/_bulk?", "message": "Exception on /api/2/collections/1/_bulk [POST]", "severity": "ERROR"}
api-1 | {"logger": "aleph.views.base_api", "timestamp": "2024-07-24 09:10:19.254486", "exception": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 2190, in wsgi_app\n response = self.full_dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1486, in full_dispatch_request\n rv = self.handle_user_exception(e)\n File \"/usr/local/lib/python3.8/dist-packages/flask_cors/extension.py\", line 176, in wrapped_function\n return cors_after_request(app.make_response(f(*args, **kwargs)))\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1484, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1469, in dispatch_request\n return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)\n File \"/aleph/aleph/views/collections_api.py\", line 290, in bulk\n for entity_id in bulk_write(\n File \"/aleph/aleph/logic/processing.py\", line 38, in bulk_write\n entity = model.get_proxy(data, cleaned=(not clean))\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/model.py\", line 141, in get_proxy\n return EntityProxy.from_dict(self, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 498, in from_dict\n return cls(model, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 53, in __init__\n data = dict(data or {})\nValueError: dictionary update sequence element #0 has length 3; 2 is required", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "e2bed91f-6a27-4bb6-98a8-333ea69ba15d", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:10:08.666188", "path": "/api/2/collections/1/_bulk?", "message": "InternalServerError: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.", "severity": "ERROR"}
api-1 | {"request_logging": true, "logger": "aleph.views.context", "timestamp": "2024-07-24 09:10:19.254827", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "e2bed91f-6a27-4bb6-98a8-333ea69ba15d", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "took": 10.588584423065186, "referrer": null, "collection_id": 1, "v": "3.17.0", "begin_time": "2024-07-24T09:10:08.666188", "status": 500, "path": "/api/2/collections/1/_bulk?", "time": "2024-07-24T09:10:19.254778", "message": "Request handled", "severity": "INFO"}
api-1 | {"logger": "werkzeug", "timestamp": "2024-07-24 09:10:19.255710", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "e2bed91f-6a27-4bb6-98a8-333ea69ba15d", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "took": 10.588584423065186, "referrer": null, "collection_id": 1, "v": "3.17.0", "begin_time": "2024-07-24T09:10:08.666188", "status": 500, "path": "/api/2/collections/1/_bulk?", "time": "2024-07-24T09:10:19.254778", "message": "172.18.0.7 - - [24/Jul/2024 09:10:19] \"\u001b[35m\u001b[1mPOST /api/2/collections/1/_bulk HTTP/1.1\u001b[0m\" 500 -", "severity": "INFO"}
api-1 | {"logger": "aleph", "timestamp": "2024-07-24 09:10:34.362830", "exception": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 2190, in wsgi_app\n response = self.full_dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1486, in full_dispatch_request\n rv = self.handle_user_exception(e)\n File \"/usr/local/lib/python3.8/dist-packages/flask_cors/extension.py\", line 176, in wrapped_function\n return cors_after_request(app.make_response(f(*args, **kwargs)))\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1484, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1469, in dispatch_request\n return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)\n File \"/aleph/aleph/views/collections_api.py\", line 290, in bulk\n for entity_id in bulk_write(\n File \"/aleph/aleph/logic/processing.py\", line 38, in bulk_write\n entity = model.get_proxy(data, cleaned=(not clean))\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/model.py\", line 141, in get_proxy\n return EntityProxy.from_dict(self, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 498, in from_dict\n return cls(model, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 53, in __init__\n data = dict(data or {})\nValueError: dictionary update sequence element #0 has length 3; 2 is required", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "95ae4639-cc45-4db4-93d6-794437e541b4", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:10:23.225461", "path": "/api/2/collections/1/_bulk?", "message": "Exception on /api/2/collections/1/_bulk [POST]", "severity": "ERROR"}
api-1 | {"logger": "aleph.views.base_api", "timestamp": "2024-07-24 09:10:34.363191", "exception": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 2190, in wsgi_app\n response = self.full_dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1486, in full_dispatch_request\n rv = self.handle_user_exception(e)\n File \"/usr/local/lib/python3.8/dist-packages/flask_cors/extension.py\", line 176, in wrapped_function\n return cors_after_request(app.make_response(f(*args, **kwargs)))\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1484, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1469, in dispatch_request\n return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)\n File \"/aleph/aleph/views/collections_api.py\", line 290, in bulk\n for entity_id in bulk_write(\n File \"/aleph/aleph/logic/processing.py\", line 38, in bulk_write\n entity = model.get_proxy(data, cleaned=(not clean))\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/model.py\", line 141, in get_proxy\n return EntityProxy.from_dict(self, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 498, in from_dict\n return cls(model, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 53, in __init__\n data = dict(data or {})\nValueError: dictionary update sequence element #0 has length 3; 2 is required", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "95ae4639-cc45-4db4-93d6-794437e541b4", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:10:23.225461", "path": "/api/2/collections/1/_bulk?", "message": "InternalServerError: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.", "severity": "ERROR"}
api-1 | {"request_logging": true, "logger": "aleph.views.context", "timestamp": "2024-07-24 09:10:34.363524", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "95ae4639-cc45-4db4-93d6-794437e541b4", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "took": 11.138012409210205, "referrer": null, "collection_id": 1, "v": "3.17.0", "begin_time": "2024-07-24T09:10:23.225461", "status": 500, "path": "/api/2/collections/1/_bulk?", "time": "2024-07-24T09:10:34.363479", "message": "Request handled", "severity": "INFO"}
api-1 | {"logger": "werkzeug", "timestamp": "2024-07-24 09:10:34.364416", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "95ae4639-cc45-4db4-93d6-794437e541b4", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "took": 11.138012409210205, "referrer": null, "collection_id": 1, "v": "3.17.0", "begin_time": "2024-07-24T09:10:23.225461", "status": 500, "path": "/api/2/collections/1/_bulk?", "time": "2024-07-24T09:10:34.363479", "message": "172.18.0.7 - - [24/Jul/2024 09:10:34] \"\u001b[35m\u001b[1mPOST /api/2/collections/1/_bulk HTTP/1.1\u001b[0m\" 500 -", "severity": "INFO"}
api-1 | {"logger": "aleph", "timestamp": "2024-07-24 09:10:52.681868", "exception": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 2190, in wsgi_app\n response = self.full_dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1486, in full_dispatch_request\n rv = self.handle_user_exception(e)\n File \"/usr/local/lib/python3.8/dist-packages/flask_cors/extension.py\", line 176, in wrapped_function\n return cors_after_request(app.make_response(f(*args, **kwargs)))\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1484, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1469, in dispatch_request\n return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)\n File \"/aleph/aleph/views/collections_api.py\", line 290, in bulk\n for entity_id in bulk_write(\n File \"/aleph/aleph/logic/processing.py\", line 38, in bulk_write\n entity = model.get_proxy(data, cleaned=(not clean))\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/model.py\", line 141, in get_proxy\n return EntityProxy.from_dict(self, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 498, in from_dict\n return cls(model, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 53, in __init__\n data = dict(data or {})\nValueError: dictionary update sequence element #0 has length 3; 2 is required", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "a5fbf01b-87cf-42db-9b2c-83e7b739db00", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:10:40.598841", "path": "/api/2/collections/1/_bulk?", "message": "Exception on /api/2/collections/1/_bulk [POST]", "severity": "ERROR"}
api-1 | {"logger": "aleph.views.base_api", "timestamp": "2024-07-24 09:10:52.682222", "exception": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 2190, in wsgi_app\n response = self.full_dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1486, in full_dispatch_request\n rv = self.handle_user_exception(e)\n File \"/usr/local/lib/python3.8/dist-packages/flask_cors/extension.py\", line 176, in wrapped_function\n return cors_after_request(app.make_response(f(*args, **kwargs)))\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1484, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1469, in dispatch_request\n return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)\n File \"/aleph/aleph/views/collections_api.py\", line 290, in bulk\n for entity_id in bulk_write(\n File \"/aleph/aleph/logic/processing.py\", line 38, in bulk_write\n entity = model.get_proxy(data, cleaned=(not clean))\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/model.py\", line 141, in get_proxy\n return EntityProxy.from_dict(self, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 498, in from_dict\n return cls(model, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 53, in __init__\n data = dict(data or {})\nValueError: dictionary update sequence element #0 has length 3; 2 is required", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "a5fbf01b-87cf-42db-9b2c-83e7b739db00", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:10:40.598841", "path": "/api/2/collections/1/_bulk?", "message": "InternalServerError: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.", "severity": "ERROR"}
api-1 | {"request_logging": true, "logger": "aleph.views.context", "timestamp": "2024-07-24 09:10:52.682523", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "a5fbf01b-87cf-42db-9b2c-83e7b739db00", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "took": 12.083632469177246, "referrer": null, "collection_id": 1, "v": "3.17.0", "begin_time": "2024-07-24T09:10:40.598841", "status": 500, "path": "/api/2/collections/1/_bulk?", "time": "2024-07-24T09:10:52.682478", "message": "Request handled", "severity": "INFO"}
api-1 | {"logger": "werkzeug", "timestamp": "2024-07-24 09:10:52.684755", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "a5fbf01b-87cf-42db-9b2c-83e7b739db00", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "took": 12.083632469177246, "referrer": null, "collection_id": 1, "v": "3.17.0", "begin_time": "2024-07-24T09:10:40.598841", "status": 500, "path": "/api/2/collections/1/_bulk?", "time": "2024-07-24T09:10:52.682478", "message": "172.18.0.7 - - [24/Jul/2024 09:10:52] \"\u001b[35m\u001b[1mPOST /api/2/collections/1/_bulk HTTP/1.1\u001b[0m\" 500 -", "severity": "INFO"}
api-1 | {"logger": "aleph", "timestamp": "2024-07-24 09:11:12.146326", "exception": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 2190, in wsgi_app\n response = self.full_dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1486, in full_dispatch_request\n rv = self.handle_user_exception(e)\n File \"/usr/local/lib/python3.8/dist-packages/flask_cors/extension.py\", line 176, in wrapped_function\n return cors_after_request(app.make_response(f(*args, **kwargs)))\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1484, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1469, in dispatch_request\n return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)\n File \"/aleph/aleph/views/collections_api.py\", line 290, in bulk\n for entity_id in bulk_write(\n File \"/aleph/aleph/logic/processing.py\", line 38, in bulk_write\n entity = model.get_proxy(data, cleaned=(not clean))\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/model.py\", line 141, in get_proxy\n return EntityProxy.from_dict(self, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 498, in from_dict\n return cls(model, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 53, in __init__\n data = dict(data or {})\nValueError: dictionary update sequence element #0 has length 3; 2 is required", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "0e5a5e6a-88fc-4721-ae7e-69e19a2c56c7", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:11:02.556743", "path": "/api/2/collections/1/_bulk?", "message": "Exception on /api/2/collections/1/_bulk [POST]", "severity": "ERROR"}
api-1 | {"logger": "aleph.views.base_api", "timestamp": "2024-07-24 09:11:12.146796", "exception": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 2190, in wsgi_app\n response = self.full_dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1486, in full_dispatch_request\n rv = self.handle_user_exception(e)\n File \"/usr/local/lib/python3.8/dist-packages/flask_cors/extension.py\", line 176, in wrapped_function\n return cors_after_request(app.make_response(f(*args, **kwargs)))\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1484, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1469, in dispatch_request\n return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)\n File \"/aleph/aleph/views/collections_api.py\", line 290, in bulk\n for entity_id in bulk_write(\n File \"/aleph/aleph/logic/processing.py\", line 38, in bulk_write\n entity = model.get_proxy(data, cleaned=(not clean))\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/model.py\", line 141, in get_proxy\n return EntityProxy.from_dict(self, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 498, in from_dict\n return cls(model, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 53, in __init__\n data = dict(data or {})\nValueError: dictionary update sequence element #0 has length 3; 2 is required", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "0e5a5e6a-88fc-4721-ae7e-69e19a2c56c7", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:11:02.556743", "path": "/api/2/collections/1/_bulk?", "message": "InternalServerError: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.", "severity": "ERROR"}
api-1 | {"request_logging": true, "logger": "aleph.views.context", "timestamp": "2024-07-24 09:11:12.147189", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "0e5a5e6a-88fc-4721-ae7e-69e19a2c56c7", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "took": 9.5903959274292, "referrer": null, "collection_id": 1, "v": "3.17.0", "begin_time": "2024-07-24T09:11:02.556743", "status": 500, "path": "/api/2/collections/1/_bulk?", "time": "2024-07-24T09:11:12.147144", "message": "Request handled", "severity": "INFO"}
api-1 | {"logger": "werkzeug", "timestamp": "2024-07-24 09:11:12.147937", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "0e5a5e6a-88fc-4721-ae7e-69e19a2c56c7", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "took": 9.5903959274292, "referrer": null, "collection_id": 1, "v": "3.17.0", "begin_time": "2024-07-24T09:11:02.556743", "status": 500, "path": "/api/2/collections/1/_bulk?", "time": "2024-07-24T09:11:12.147144", "message": "172.18.0.7 - - [24/Jul/2024 09:11:12] \"\u001b[35m\u001b[1mPOST /api/2/collections/1/_bulk HTTP/1.1\u001b[0m\" 500 -", "severity": "INFO"}
api-1 | {"logger": "aleph", "timestamp": "2024-07-24 09:11:41.286786", "exception": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 2190, in wsgi_app\n response = self.full_dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1486, in full_dispatch_request\n rv = self.handle_user_exception(e)\n File \"/usr/local/lib/python3.8/dist-packages/flask_cors/extension.py\", line 176, in wrapped_function\n return cors_after_request(app.make_response(f(*args, **kwargs)))\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1484, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1469, in dispatch_request\n return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)\n File \"/aleph/aleph/views/collections_api.py\", line 290, in bulk\n for entity_id in bulk_write(\n File \"/aleph/aleph/logic/processing.py\", line 38, in bulk_write\n entity = model.get_proxy(data, cleaned=(not clean))\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/model.py\", line 141, in get_proxy\n return EntityProxy.from_dict(self, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 498, in from_dict\n return cls(model, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 53, in __init__\n data = dict(data or {})\nValueError: dictionary update sequence element #0 has length 3; 2 is required", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "6fc2ff6b-237f-45b9-9eca-90a63e5ef4ca", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:11:29.853187", "path": "/api/2/collections/1/_bulk?", "message": "Exception on /api/2/collections/1/_bulk [POST]", "severity": "ERROR"}
api-1 | {"logger": "aleph.views.base_api", "timestamp": "2024-07-24 09:11:41.287160", "exception": "Traceback (most recent call last):\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 2190, in wsgi_app\n response = self.full_dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1486, in full_dispatch_request\n rv = self.handle_user_exception(e)\n File \"/usr/local/lib/python3.8/dist-packages/flask_cors/extension.py\", line 176, in wrapped_function\n return cors_after_request(app.make_response(f(*args, **kwargs)))\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1484, in full_dispatch_request\n rv = self.dispatch_request()\n File \"/usr/local/lib/python3.8/dist-packages/flask/app.py\", line 1469, in dispatch_request\n return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)\n File \"/aleph/aleph/views/collections_api.py\", line 290, in bulk\n for entity_id in bulk_write(\n File \"/aleph/aleph/logic/processing.py\", line 38, in bulk_write\n entity = model.get_proxy(data, cleaned=(not clean))\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/model.py\", line 141, in get_proxy\n return EntityProxy.from_dict(self, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 498, in from_dict\n return cls(model, data, cleaned=cleaned)\n File \"/usr/local/lib/python3.8/dist-packages/followthemoney/proxy.py\", line 53, in __init__\n data = dict(data or {})\nValueError: dictionary update sequence element #0 has length 3; 2 is required", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "6fc2ff6b-237f-45b9-9eca-90a63e5ef4ca", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "referrer": null, "v": "3.17.0", "begin_time": "2024-07-24T09:11:29.853187", "path": "/api/2/collections/1/_bulk?", "message": "InternalServerError: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.", "severity": "ERROR"}
api-1 | {"request_logging": true, "logger": "aleph.views.context", "timestamp": "2024-07-24 09:11:41.287502", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "6fc2ff6b-237f-45b9-9eca-90a63e5ef4ca", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "took": 11.434263467788696, "referrer": null, "collection_id": 1, "v": "3.17.0", "begin_time": "2024-07-24T09:11:29.853187", "status": 500, "path": "/api/2/collections/1/_bulk?", "time": "2024-07-24T09:11:41.287456", "message": "Request handled", "severity": "INFO"}
api-1 | {"logger": "werkzeug", "timestamp": "2024-07-24 09:11:41.288393", "endpoint": "collections_api.bulk", "locale": "en", "trace_id": "6fc2ff6b-237f-45b9-9eca-90a63e5ef4ca", "method": "POST", "ip": "172.18.0.7", "url": "http://api:5000/api/2/collections/1/_bulk", "session_id": "dca02b7d-7362-4b40-b53d-6569b6ced855", "ua": "alephclient/2.4.1", "role_id": 4, "took": 11.434263467788696, "referrer": null, "collection_id": 1, "v": "3.17.0", "begin_time": "2024-07-24T09:11:29.853187", "status": 500, "path": "/api/2/collections/1/_bulk?", "time": "2024-07-24T09:11:41.287456", "message": "172.18.0.7 - - [24/Jul/2024 09:11:41] \"\u001b[35m\u001b[1mPOST /api/2/collections/1/_bulk HTTP/1.1\u001b[0m\" 500 -", "severity": "INFO"}