Mainly use responseType: 'document'
Use responseType: 'document' instead of encodedRequest