The $expand query is not valid for field 'Editor'
What causes it and how to fix it:
- A folder's Files collection rejects a two-level $expandListItemAllFields/Editor 400s there; take ModifiedBy/Author from the file, and list one level through the folder API rather than a FileDirRef filterCause and fix →