Ssl3_get_record:wrong version error in opensearch-dashboards pod

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
opensearch: latest
opensearch-dashboards: latest

Describe the issue:
I am running opensearch and opensearch-dashboards from the respective dockercompose files.

The opensearch nodes have started all right. No errors in the pod logs.
In the opensearch-dashboard pods, I am however noticing errors:
{"type":"log","@timestamp":"2023-08-07T15:14:38Z","tags":["error","opensearch","data"],"pid":1,"message":"[ConnectionError]: write EPROTO 140501819639680:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:\n"}

I have disabled security plugin in the docker-compose file itself for dashboard:

opensearch-dashboards:
    image: 240852588578.dkr.ecr.us-west-2.amazonaws.com/opensearch:opensearch-dashboards
    container_name: opensearch-dashboards
    ports:
      - 5601:5601
    expose:
      - "5601"
    environment:
      OPENSEARCH_HOSTS: '["https://opensearch-node1:9200","https://opensearch-node2:9200","https://opensearch-node3:9200"]'
      DISABLE_SECURITY_DASHBOARDS_PLUGIN: true
    networks:
      - opensearch-net

Has anyone encountered similar issue before? What I am missing?

Configuration:

Relevant Logs or Screenshots:

debashish.ghosh@debashi-ltmvxkx opensearch-kube % kubectl logs opensearch-dashboards-5fb9488b9d-486pv

Disabling OpenSearch Security Dashboards Plugin

Removing securityDashboards...

Plugin removal complete

{"type":"log","@timestamp":"2023-08-07T15:13:25Z","tags":["info","plugins-service"],"pid":1,"message":"Plugin \"dataSourceManagement\" has been disabled since the following direct or transitive dependencies are missing or disabled: [dataSource]"}

{"type":"log","@timestamp":"2023-08-07T15:13:25Z","tags":["info","plugins-service"],"pid":1,"message":"Plugin \"dataSource\" is disabled."}

{"type":"log","@timestamp":"2023-08-07T15:13:25Z","tags":["info","plugins-service"],"pid":1,"message":"Plugin \"visTypeXy\" is disabled."}

{"type":"log","@timestamp":"2023-08-07T15:13:25Z","tags":["warning","config","deprecation"],"pid":1,"message":"\"opensearch.requestHeadersWhitelist\" is deprecated and has been replaced by \"opensearch.requestHeadersAllowlist\""}

{"type":"log","@timestamp":"2023-08-07T15:13:25Z","tags":["info","plugins-system"],"pid":1,"message":"Setting up [48] plugins: [securityAnalyticsDashboards,alertingDashboards,usageCollection,opensearchDashboardsUsageCollection,opensearchDashboardsLegacy,mapsLegacy,share,opensearchUiShared,legacyExport,embeddable,expressions,data,home,console,apmOss,management,indexPatternManagement,advancedSettings,savedObjects,reportsDashboards,indexManagementDashboards,anomalyDetectionDashboards,dashboard,visualizations,visTypeVega,visTypeTimeline,timeline,visTypeTable,visTypeMarkdown,visBuilder,tileMap,regionMap,customImportMapDashboards,inputControlVis,ganttChartDashboards,visualize,searchRelevanceDashboards,queryWorkbenchDashboards,notificationsDashboards,charts,visTypeVislib,visTypeTimeseries,visTypeTagcloud,visTypeMetric,observabilityDashboards,discover,savedObjectsManagement,bfetch]"}

{"type":"log","@timestamp":"2023-08-07T15:13:26Z","tags":["info","savedobjects-service"],"pid":1,"message":"Waiting until all OpenSearch nodes are compatible with OpenSearch Dashboards before starting saved objects migrations..."}

{"type":"log","@timestamp":"2023-08-07T15:13:30Z","tags":["error","opensearch","data"],"pid":1,"message":"[ConnectionError]: connect ECONNREFUSED 172.20.66.64:9200"}

{"type":"log","@timestamp":"2023-08-07T15:13:30Z","tags":["error","savedobjects-service"],"pid":1,"message":"Unable to retrieve version information from OpenSearch nodes."}

{"type":"log","@timestamp":"2023-08-07T15:13:35Z","tags":["error","opensearch","data"],"pid":1,"message":"[ConnectionError]: connect ECONNREFUSED 172.20.244.102:9200"}

{"type":"log","@timestamp":"2023-08-07T15:13:40Z","tags":["error","opensearch","data"],"pid":1,"message":"[ConnectionError]: connect ECONNREFUSED 172.20.132.204:9200"}

{"type":"log","@timestamp":"2023-08-07T15:13:45Z","tags":["error","opensearch","data"],"pid":1,"message":"[ConnectionError]: connect ECONNREFUSED 172.20.66.64:9200"}

@debashish.ghosh Could you share the full docker-compose.yml file? Please also share opensearch.yml file.