2025 May 09 10:18 AM - edited 2025 May 12 8:29 AM
hi all, new to sap ui5 and fiori
Working through the ui5 sdk demo kit JavaScript tutorials, managed to get to tutorial 25 and having difficulty understanding how why the baseuri "https://services.odata.org" is not being called when i load the application. it appears to still be attempting to use localhost as the base uri
this is my error below, help would be much appreciated
info graph:helpers:ui5Framework Using OpenUI5 version: 1.135.0
Server started
URL: http://localhost:8080
(node:28304) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[HPM] Error occurred while proxying request localhost:8080/Northwind/Northwind.svc/$metadata?sap-language=EN to https://services.odata.org/ [UNABLE_TO_GET_ISSUER_CERT_LOCALLY] (https://nodejs.org/api/errors.html#errors_common_system_errors)
thanks for responce @FabioPagoti @junwu
updating with yaml and manifest, dont have a model section
this is the tutorial im working through
Step 25: Remote OData Service - Documentation - Demo Kit - SAPUI5 SDK
manifest
{
"_version": "1.65.0",
"sap.app": {
"id": "ui5.walkthrough",
"i18n": {
"bundleUrl": "i18n/i18n.properties",
"supportedLocales": [
""
],
"fallbackLocale": ""
},
"title": "{{appTitle}}",
"description": "{{appDescription}}",
"type": "application",
"applicationVersion": {
"version": "1.0.0"
},
"dataSources": {
"invoiceRemote": {
"uri": "https://services.odata.org/V2/northwind/Northwind.svc/",
"type": "OData",
"settings": {
"odataVersion": "2.0"
}
}
}
},
"sap.ui": {
"technology": "UI5",
"deviceTypes": {
"desktop": true,
"tablet": true,
"phone": true
}
},
"sap.ui5": {
"dependencies": {
"minUI5Version": "1.108.0",
"libs": {
"sap.m": {},
"sap.ui.core": {}
}
},
"models": {
"i18n": {
"type": "sap.ui.model.resource.ResourceModel",
"settings": {
"bundleName": "ui5.walkthrough.i18n.i18n",
"supportedLocales": [
""
],
"fallbackLocale": ""
}
},
"invoice": {
"dataSource": "invoiceRemote"
}
},
"rootView": {
"viewName": "ui5.walkthrough.view.App",
"type": "XML",
"id": "app"
},
"resources": {
"css": [
{
"uri": "css/style.css"
}
]
}
}
}
yaml
specVersion: "4.0"
metadata:
name: ui5.walkthrough
type: application
framework:
name: OpenUI5
version: "1.135.0"
libraries:
- name: sap.m
- name: sap.ui.core
- name: themelib_sap_horizon
server:
customMiddleware:
- name: ui5-middleware-simpleproxy
afterMiddleware: compression
mountPath: /V2
configuration:
baseUri: "https://services.odata.org"
Request clarification before answering.
you ui will only call localhost, https://services.odata.org will be called at server side.
in yaml file, if you see ignoreCertError, please assign true to it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
33 | |
22 | |
17 | |
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.