Qlik Community

Qlik NPrinting Discussions

Discussion Board for collaboration on Qlik NPrinting.

Announcements
Coming your way, the Qlik Data Revolution Virtual Summit. October 27-29. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator
Creator

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

 

Labels (1)
5 Replies
Highlighted
Employee
Employee

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.
Highlighted
Creator
Creator

Is there any alternative to overcome this?

 

Regards,

Imran K

Highlighted
Employee
Employee

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.
Highlighted
Support
Support

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!
Highlighted
Creator
Creator

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