Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
khan_imran
Creator II
Creator II

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)
  • Other

5 Replies
Ruggero_Piccoli
Support
Support

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
Creator II
Creator II
Author

Is there any alternative to overcome this?

 

Regards,

Imran K

Ruggero_Piccoli
Support
Support

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.
Frank_S
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

Please remember hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
khan_imran
Creator II
Creator II
Author

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