on 12-05-2018 4:45 PM
I am using HANA Express Edition (SAP-CAL -> GCP ).
I have followed the exercise for creating node js app. But I get above error repeatedly.
I tried some of the online resolution but unable to hack.
1. Port Hint
2. Checked Apps are running in same space
3. Cross checked names and all.
My mta.yaml & app router coide is given below.
Let me know if you need more info to help.
Complete Source can be found at My Git Hub Repository
MTA.YAML
ID: openSAP_hana5
_schema-version: '2.0'
version: 0.0.1
modules:
- name: web
type: html5
path: web
requires:
- name: openSAP_hana5-uaa
- name: ps_js_api
group: destinations
properties:
name: ps-js-backend
url: '~{psjsurl}'
forwardAuthToken: true
- name: psdb
type: hdb
path: psdb
requires:
- name: hdi_psdb_2
properties:
TARGET_CONTAINER: '~{hdi-container-name_2}'
- name: cross-container-products
group: SERVICE_REPLACEMENTS
properties:
key: ServiceName_Products
service: '~{product-service-name}'
- name: cross-container-sflights
group: SERVICE_REPLACEMENTS
properties:
key: ServiceName_Sflights
service: '~{sflight-service-name}'
- name: hdi_usrdb
group: SERVICE_REPLACEMENTS
properties:
key: ServiceName_UserDB
service: '~{hdi-container-usrdb}'
- name: usrdb
type: hdb
path: usrdb
requires:
- name: hdi_usrdb
- name: ps_js
type: nodejs
path: ps_js
provides:
- name: ps_js_api
properties:
psjsurl: '${default-url}'
requires:
- name: openSAP_hana5-uaa
- name: hdi_psdb_2
- name: psdb
resources:
- name: openSAP_hana5-uaa
type: com.sap.xs.uaa
parameters:
config_path: ./xs-security.json
- name: hdi_psdb_2
parameters:
config:
schema: hana5
properties:
hdi-container-name_2: '${service-name}'
type: com.sap.xs.hdi-container
- name: cross-container-products
parameters:
service-name: CROSS_SCHEMA_PRODUCTS
properties:
product-service-name: '${service-name}'
type: org.cloudfoundry.existing-service
- name: cross-container-sflights
parameters:
service-name: CROSS_SCHEMA_SFLIGHTS
properties:
sflight-service-name: '${service-name}'
type: org.cloudfoundry.existing-service
- name: hdi_usrdb
parameters:
config:
schema: usrdb
properties:
hdi-container-usrdb: '${service-name}'
type: com.sap.xs.hdi-container
provider: eprsonline
description: Software Development on SAP HANA (Update Q4/2016)
copyright: eprsonline
XS-APP.JSON
{
"welcomeFile": "index.html",
"authenticationMethod": "route",
"routes": [{
"source": "(.*)(.xsjs)",
"destination": "ps-js-backend",
"csrfProtection": false,
"authenticationType": "xsuaa"
}, {
"source": "(.*)(.xsodata)",
"destination": "ps-js-backend",
"authenticationType": "xsuaa"
}]
}
Tagged: lsubatin thomas.jung
That tells me you are trying to start the web module before you have started the Node.js module. You have to run the modules in the correct order otherwise the Web module fails when it can't communicate with the node.js module it sits in front of.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How about showing us more of the error log. Just getting a single line fragment in the title isn't really enough.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Logs from Web IDE for Web App
Failed to resolve reference for provided property: f90aa7d6-4f76-47d7-b582-a7f0e1a26d91-x31cx59lp82bvt9b-openSAP_hana5#ps_js_api#psjsurl
Logs from CLI for Web App
Logs from successful start of Node JS App
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.