Vault loading config.hcl error At 1:1: illegal char

Hi there

I’m new to the vault. I am trying to deploy vault self-mode with docker. Upon running docker-compose.yml, I got the error regarding loading configuration file. The error is as follows:
error loading configuration from config.hcl: At 1:1: illegal char

No matter what content I changed for config.hcl, I always got the same error.
Would someone be able to explain the reason?

Thank you,

Ann

I changed the file editor. Now it works. Thank you, Ann

Hi,

Are you on macOS or Windows? I have seen this more often on Windows due to file formatting.

Also, if you could please share your config, removing any confidential info, I can try it locally.