Skip to Content
0
Oct 21, 2019 at 11:40 AM

SAPUI5 oDataModel v2 net::ERR_EMPTY_RESPONSE

530 Views

Hello to all!

I get net::ERR_EMPTY_RESPONSE when I try to create new entry in oData (with sap.ui.model.odata.v2.ODataModel) from SAPUI5.

I have .xsodata service, that exposed on XS Classic and SAPUI5`s frontend. SAP HANA Trace looks like nothing is happening (there are no records about inserting a new record).

When I`m try to POST new entry to oData with Postman, this works well. GET-request works well with SAPUI5.

Unfortunately, v2.ODataModel`s error callback is not very informative:

  1. headers: []
  2. message: "HTTP request failed"
  3. responseText: ""
  4. statusCode: 0
  5. statusText: ""
  6. __proto__: Object

Any help is appreciated! Thanks!

Best regards,

Pavel Mazharov.

Attachments

снимок.jpg (58.0 kB)