Qlik Community

Qlik NPrinting Discussions

Discussion Board for collaboration on Qlik NPrinting.

Announcements
IMPORTANT: PLEASE READ - Labels will be required in the NPrinting forum starting on Friday September 6, 2019: Click here for details and instructions.
khan_imran
Contributor

Error - Support Request header 'Content-Type'

Hello All,

While running a Job through Rest Connector API, I am getting "QVX_UNEXPECTED_END_OF_DATA: GET method does not support Request header 'Content-Type'".

Kindly advise me on this.

 

Regards,

Imran K

 

Tags (2)
Labels (1)
5 Replies
Employee
Employee

Re: Error - Support Request header 'Content-Type'

Hi,

GET requests don't support the "Content-Type" header. It is supported only by HTTP requests with body (POST, PUT, PATCH...).

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
khan_imran
Contributor

Re: Error - Support Request header 'Content-Type'

Is there any alternative to overcome this?

 

Regards,

Imran K

Employee
Employee

Re: Error - Support Request header 'Content-Type'

Check also this conversation https://community.qlik.com/t5/Qlik-Sense-Integration/Can-t-access-the-api-with-header-quot-Content-T... maybe it is useful.

In other to help other people to help you please add more details about your goal and how to reproduce the error. 

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Support
Support

Re: Error - Support Request header 'Content-Type'

It could be that your Rest connector is not configured accurately.

Please check the following article which contains a PDF (and a sample QVF) with correct instructions for setting up your Rest Connector.

https://support-cdn.qlik.com/articles/000059611

We are just 'like' you & like to be liked when we provide a helpful answer and or when you press the 'Solution Accepted' button if an answer provided resolves your question or issue... Cheers!
khan_imran
Contributor

Re: Error - Support Request header 'Content-Type'

Hello,

I tried all the provided solutions and now getting below error.

Error: QVX_UNEXPECTED_END_OF_DATA: HTTP protocol error 415 (Unsupported Media Type):
{"message":"The request contains an entity body but no Content-Type header. The inferred media type 'application/octet-stream' is not supported for this resource.","exceptionMessage":"No MediaTypeFormatter is available to read an object of type 'ApiTaskExecutionStatusPatch' from content with media t...

Attached is the script which is causing an issue and rest script is running perfectly fine.

Kindly assist.

Regards,

Imran Khan