I ran into this issue because my local.settings.json file was faulty. I was missing a comma at the end of one of my properties inside the Values object. Bit of a misleading error message in my case.