defaults.headers.put['Content-Type'] = 'application/json' Cannot convert undefined or null to object; TypeError: Cannot convert undefined or null to object at t.getOwnPropertyNames (<anonymous>) at t.isEmptyObject