toluaina / pgsync

Postgres to Elasticsearch/OpenSearch sync
https://pgsync.com
MIT License
1.15k stars 180 forks source link

unexpected keyword argument 'use_ssl' for ELASTICSEARCH_AWS_HOSTED #554

Open Alexejklim opened 2 months ago

Alexejklim commented 2 months ago

PGSync version: 3.1.0

Postgres version: 16

Elasticsearch/OpenSearch version: 7.17.13

Redis version: 7.2.5

Python version: 3.11 (elasticsearch==8.14.0)

Problem Description: Looks like the latest versions of python elasticsearch client lib rejects the parameter 'use_ssl'. As i see it was commented out in code for 'else' client but not for AWS-hosted https://github.com/toluaina/pgsync/blob/main/pgsync/search_client.py#L401

Error Message (if any):

TypeError: Elasticsearch.init() got an unexpected keyword argument 'use_ssl'

toluaina commented 1 month ago

Thanks for that. sorry for the dealy. All fixed

andytavares commented 1 week ago

Any update on this, it looks like this fix was not included in the 3.2.0 release

toluaina commented 1 week ago

this is now included in 3.2.1 release here