I feel `marker` should be validated before making the query since a user could abuse the elasticsearch cluster by giving invalid value. This should be fine if ES does break with invalid value. Could you check how ES behaves?