Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
Is there any alternative to overcome this?
Regards,
Imran K
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
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
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