Getting unexpected character ('o' (code 111)): expected a valid value error