The server-side HTTP version is not supported

Hi
Can anyone explain why, I am getting this error.

Actually, I am using daml (programming language) on fabric (blockchain platform). and when I am running a command :-

daml script --ledger-host http://localhost --ledger-port 6865 --json-api --dar .daml/dist/migration-0.0.1.dar --wall-clock-time --script-name Migrate:upgradeContracts --input-file <(echo ‘“Admin”’) --access-token-file admin_token

This command internally calls an API

And from there I am getting the following error :-

akka.http.scaladsl.model.IllegalResponseException: The server-side HTTP version is not supported