You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was stumbling over this library when looking on how to integrate a small demo of an openui5 app without a SAP backend. After setting up CORS it was easy to expose the $metadata file and access the catalogues defined in AppProvider.
But when I want to access entitysets in ui5 I get the message »Unsupported OData version 4.01«
Log.js?eval:4992024-01-1213:27:25.467800Failedtogetcontextsforhttp://localhost/odata/Times with start index 0 and length 500 - Error: http://localhost/odata/$metadata: Unsupported OData version 4.01at_V4MetadataConverter.finalize(http://localhost:8080/resources/sap/ui/model/odata/v4/lib/_V4MetadataConverter.js:37:10)at_MetadataConverter.convertXMLMetadata(http://localhost:8080/resources/sap/ui/model/odata/v4/lib/_MetadataConverter.js:141:8)atconvertXMLMetadata(http://localhost:8080/resources/sap/ui/model/odata/v4/lib/_MetadataRequestor.js:77:24) sap.ui.model.odata.v4.ODataListBinding
This brings me to my initial stated question: Is it possible to consume output from this library with openui5?
If yes, any hints are welcomed.
Thanks
The text was updated successfully, but these errors were encountered:
Hi @mgerzabek, based on the error I'm going to guess the openui5 library supports OData 4.0, but not 4.01, and isn't sending the OData-Version header to indicate what versions it supports.
If you publish the lodata.php configuration you can edit the default version to 4.0 instead of 4.01 which is used if the client doesn't send a version.
I was stumbling over this library when looking on how to integrate a small demo of an openui5 app without a SAP backend. After setting up CORS it was easy to expose the $metadata file and access the catalogues defined in AppProvider.
But when I want to access entitysets in ui5 I get the message »Unsupported OData version 4.01«
This brings me to my initial stated question: Is it possible to consume output from this library with openui5?
If yes, any hints are welcomed.
Thanks
The text was updated successfully, but these errors were encountered: