cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori exception "no handler for data"

former_member268046
Discoverer
0 Kudos
3,508

I have built a gateway service which successfully sends a pdf file. I used the media functionality and the GET_STREAM method to do this. It works in the Gateway cleint and when called from a browser.

However when I call the read method of the service from UI5, using the exact same syntax that works in the gateway (e.g. /sap/opu/odate/sap/ZINT_CRSTO_SRV/pdfSet(Ebeln='123')/$value ), I get an exception thrown in file datajs.js as "no handler for data" at line 7854.

The service is called successfully and returns a 200 status. The error is raised as the content type showing 'application/pdf' and there is no handler for this in the list

(there are handlers for 'application/json', 'application/atom+xml,application/atomsvc+xml,application/xml', 'application/xml' and 'text/plain')

I repeat, the gateway service works, the error is being thrown in UI5.

Any ideas where my error is?

View Entire Topic
daihao
Product and Topic Expert
Product and Topic Expert

Hi,

You can find the root cause and some alternative ways in this Github issue - https://github.com/SAP/openui5/issues/3519

Regards,

Hao

Swetha__Balusamy
Explorer
0 Kudos
I am also facing the same issue. Please let me know if you have found the solution