Error while running docker-compose up -d

error unmarshalling content: invalid character ‘<’ looking for beginning of value

the above error is all I keep getting when trying to run the docker command:
docker-compose up -d

is there any reason why this command will not work