Adding in handler to prevent Auth Error: Error in fromJSON(raw.data) : STRING_ELT() can only be applied to a 'character vector', not a 'raw'