cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

UI5 loading base uri not loading correctly

IainL
Discoverer
0 Kudos
194

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"

 

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
SAP Champion
SAP Champion

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.