As per the API docs (see here) to get metadata for an item you need to add the Accept: application/json header.
GetItem() on the GitClient doesn't do this, so the file contents are returned instead. This causes an exception when attempting to deserialize the JSON into an object of type Item.
As per the API docs (see here) to get metadata for an item you need to add the
Accept: application/json
header.GetItem()
on theGitClient
doesn't do this, so the file contents are returned instead. This causes an exception when attempting to deserialize the JSON into an object of typeItem
.