Couldn't read secret "xx-username": Error making API request

I checked at the vault end, seeing the below output.
Able to read and view the secrets using the command line.

 $ vault --version
Vault v1.10.3 (af866591ee60485f05d6e32dd63dde93df686dfb)
/ $ vault policy list
default
es_config
prometheus-metrics
xxx_config
root
/ $ vault policy read xxx_config
path "xxxx/data/configuration/xxx_config" {
  capabilities = ["read"]
}
/

/ $ vault policy read es_config
path "xxxx/data/configuration/xxx_config/es_config" {
  capabilities = ["read"]
}