I would say that Getting 401 (Unauthorized); transport: received unexpected content-type application/json indicates wrong Realms and/or Scopes configuration of used Access policy.
I had the same problem, to solve that is necessary to set the name as default in blocks receiver and batch, i don’t know why they send header with this information and consequently cause troubles.