Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError when trying to export data from Kinesis to ElasticSearch #221

Open
TomD-Woodside opened this issue Jun 7, 2022 · 0 comments
Open

Comments

@TomD-Woodside
Copy link

TomD-Woodside commented Jun 7, 2022

export-neptune-to-elasticsearch template, ES version 7.10.

Happens when using 'release_2022_04_19' for the lambda artefacts. This bug does not occur when using 'release_2021_08_23'.

[ERROR] TypeError: unsupported operand type(s) for /: 'str' and 'float'
Traceback (most recent call last):
File "kinesis_to_elasticsearch.py", line 150, in lambda_bulk_handler
File "/opt/python/neptune_to_es/neptune_to_es_handler.py", line 495, in handle_records
actions = self.generate_aggregated_es_actions(records)
File "/opt/python/neptune_to_es/neptune_to_es_handler.py", line 429, in generate_aggregated_es_actions
aggregate_map = aggregator.aggregate_records(records)
File "/opt/python/aggregator/es_aggregator.py", line 138, in aggregate_records
for record in records:
File "/opt/python/neptune_to_es/neptune_gremlin_es_handler.py", line 220, in filter_records
record_value = get_date_time_from_millis(record_value)
File "/opt/python/neptune_to_es/es_helper.py", line 264, in get_date_time_from_millis
return dt.fromtimestamp(time_in_millis / 1000.0).isoformat("T", "milliseconds")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant