点击此处---> 群内免费提供SAP练习系统(在群公告中)
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
我尝试使用路由和应用配置来构建Web模块。
但是我出错了。
{ " welcomeFile":"/web/index.html", " authenticationMethod":"路由", " sessionTimeout":10, "路线":[ { " source":"(。*)(。xsjs)", " destination":" xsjs_api", " csrfProtection":" false", " authenticationType":" xsuaa" }, { " source":"(。*)(。xsodata)", " destination":" xsjs_api", " authenticationType":" xsuaa" }] }
错误如下
2:17:12 AM(HTML5应用程序运行程序)进程崩溃,类型为:" web" 上午2:17:12(HTML5应用程序运行程序),应用程序实例已退出,并带有guid cdbe2c59-d41e-45e1-a25b-fa731e888856有效负载:{" instance" =>" 9fcc0ee0-7aae-4c16-62cd-35ee"," index" => 0," cell_id" =>" cc826424-2071-4f23-bc25-9fb4e1ecb784","原因" =>" CRASHED"," exit_description" =>" APP/PROC/WEB:以状态1退出"," crash_count" = > 2," crash_timestamp" => 1580676413862972600," version" =>" 0cfb0d45-8c73-4e52-a66a-dc3c62e4c028"} 2:17:12 AM(HTML5应用程序运行程序)单元c3ab5da3-50bb-4a82-9796-f3a27457810e创建容器例如3338ec64-666f-42b3-6e0f-1678 2:17:12 AM(HTML5应用程序运行程序)单元c3ab5da3-50bb-4a82-9796-f3a27457810e成功创建了容器,例如3338ec64-666f-42b3-6e0f-1678 2:17:12 AM(HTML5应用程序运行程序)单元cc826424-2071-4f23-bc25-9fb4e1ecb784成功销毁了容器,例如9fcc0ee0-7aae-4c16-62cd-35ee 2:17:12 AM(HTML5应用程序运行程序)正在下载Droplet ... 2:17:12 AM(HTML5应用程序运行程序)下载的Droplet 2:17:12 AM(HTML5应用程序运行程序)开始监视容器的运行状况 2:17:12 AM(HTML5应用程序运行程序)> web@0.0.1 start/home/vcap/app 2:17:12 AM(HTML5应用程序运行程序)>节点--inspect index.js 2:17:12 AM(HTML5应用程序运行程序)调试器在ws://127.0.0.1:9229/36c7e0cf-a04b-4aaf-aae4-d760b38491c3上侦听 上午2:17:12(HTML5应用程序运行程序)以获取帮助,请参阅:https://nodejs.org/en/docs/inspector 上午2:17:12(HTML5应用程序运行程序){" write_at":" 2020-02-02T20:46:57.584Z"," writing_ts":1580676417584000000," csn_component":"-"," correlation_id":"-" ," type":" log"," logger":" nodejs-logger"," layer":"/img/LoggingLibrary"," level":"警告"," container_id":" 10.0.137.26"," component_type": " application"," component_id":" cdbe2c59-d41e-45e1-a25b-fa731e888856"," component_name":" G64aybCgObClQfjt-CF-FMCG-BA-web"," component_instance":-1," source_instance":-1, " organization_id":"-"," organization_name":"-"," space_id":" ea538785-142e-4044-bafd-e21909c738c0"," space_name":" dev"," context_id":""," msg" :"动态日志级别切换不可用"} 上午2:17:12(HTML5应用程序运行程序){" component_type":" application"," component_id":" cdbe2c59-d41e-45e1-a25b-fa731e888856"," component_name":" G64aybCgObClQQjj-CF-FMCG-BA-web "," component_instance":0," layer":" [NODEJS]"," organization_id":"-"," organization_name":"-"," space_name":" dev"," space_id":" ea538785-142e -4044-bafd-e21909c738c0"," container_id":" 10.0.137.26"," logger":" nodejs-logger"," source_instance":0," write_at":" 2020-02-02T20:46:58.106Z" ," write_ts":178588978413782," msg":"正在启动AppRouter扩展","类型":"日志","级别":"信息"} 上午2:17:12(HTML5应用程序运行程序){" write_at":" 2020-02-02T20:46:58.128Z"," writing_ts":1580676418128000000," csn_component":"-"," correlation_id":" k65hxe1c" ," type":" log"," logger":" nodejs-logger"," layer":"/img/approuter"," level":" info"," container_id":" 10.0.137.26"," component_type": " application"," component_id":" cdbe2c59-d41e-45e1-a25b-fa731e888856"," component_name":" G64aybCgObClQfjt-CF-FMCG-BA-web"," component_instance":-1," source_instance":-1, " organization_id":"-"," organization_name":"-"," space_id":" ea538785-142e-4044-bafd-e21909c738c0"," space_name":" dev"," context_id":" k65hxe1c"," msg ":"应用路由器版本6.5.0"} 2:17:12 AM(HTML5应用程序运行程序)/home/vcap/deps/0/node_modules/@sap/approuter/lib/utils/JsonValidator.js:30 2:17:12 AM(HTML5应用程序运行程序)抛出新的VError('%s%s:%s', 2:17:12 AM(HTML5应用程序运行程序)^ 2:17:12 AM(HTML5应用程序运行程序)VError:xs-app.json/routes/0/csrf保护:无效的类型:字符串(期望的布尔值) JsonValidator.validate(/home/vcap/deps/0/node_modules/@sap/approuter/lib/utils/JsonValidator.js:30:11)上午2:17:12(HTML5应用程序运行程序) 2:17:12 AM(HTML5应用程序运行程序)位于Object.validateXsApp(/home/vcap/deps/0/node_modules/@sap/approuter/lib/configuration/validators.js:128:15) 2:17:12 AM(HTML5应用程序运行程序)位于Object.exports.loadConfiguration(/home/vcap/deps/0/node_modules/@sap/approuter/lib/configuration/app-config.js:21:14) 2:17:12 AM(HTML5应用程序运行程序)位于Object.module.exports.load(/home/vcap/deps/0/node_modules/@sap/approuter/lib/configuration.js:19:34) 2:17:12 AM(HTML5应用程序运行程序)在引导程序(/home/vcap/deps/0/node_modules/@sap/approuter/lib/bootstrap.js:56:36) 2:17:12 AM(HTML5应用程序运行程序)在Approuter.start(/home/vcap/deps/0/node_modules/@sap/approuter/approuter.js:67:13) 上午2:17:12(HTML5应用程序运行程序)在Object。(/home/vcap/app/index.js:274:11) 2:17:12 AM(HTML5应用程序运行程序)在Module._compile(internal/modules/cjs/loader.js:778:30) 2:17:12 AM(HTML5应用程序运行程序)位于Object.Module._extensions..js(内部/模块/cjs/loader.js:789:10) 2:17:12 AM(HTML5应用程序运行程序)在Module.load(internal/modules/cjs/loader.js:653:32) 上午2:17:12(HTML5应用程序运行程序)在tryModuleLoad(内部/模块/cjs/loader.js:593:12) 2:17:12 AM(HTML5应用程序运行程序)在Function.Module._load(internal/modules/cjs/loader.js:585:3) 2:17:12 AM(HTML5应用程序运行程序)位于Function.Module.runMain(内部/模块/cjs/loader.js:831:12) 2:17:12 AM(HTML5应用程序运行程序)在启动时启动(internal/bootstrap/node.js:283:19) 在bootstrapNodeJSCore(内部/bootstrap/node.js:623:3)的2:17:12 AM(HTML5应用程序运行程序) 2:17:12 AM(HTML5应用程序运行程序)npm错误! 代码ELIFECYCLE 2:17:12 AM(HTML5应用程序运行程序)npm错误! errno 1 2:17:12 AM(HTML5应用程序运行程序)npm错误! web@0.0.1开始:`node --inspect index.js` 2:17:12 AM(HTML5应用程序运行程序)npm错误! 退出状态1 2:17:12 AM(HTML5应用程序运行程序)npm错误! 2:17:12 AM(HTML5应用程序运行程序)npm错误! 在web@0.0.1启动脚本处失败。 2:17:12 AM(HTML5应用程序运行程序)npm错误! npm可能不是问题。 上面可能还有其他日志记录输出。 2:17:12 AM(HTML5应用程序运行程序)npm错误! 可以在以下位置找到此运行的完整日志: 2:17:12 AM(HTML5应用程序运行程序)npm错误! /home/vcap/app/.npm/_logs/2020-02-02T20_46_58_151Z-debug.log 上午2:17:12(HTML5应用程序运行程序)退出状态1 2:17:12 AM(HTML5应用程序运行程序)单元c3ab5da3-50bb-4a82-9796-f3a27457810e停止实例3338ec64-666f-42b3-6e0f-1678 2:17:12 AM(HTML5应用程序运行程序)单元c3ab5da3-50bb-4a82-9796-f3a27457810e破坏了容器,例如3338ec64-666f-42b3-6e0f-1678 上午2:17:12(HTML5应用程序运行程序),进程崩溃,类型为:" web"
我将磁盘和内存的服务配额都增加到1024,但应用程序仍然崩溃。
当我尝试在Cloud Foundry中运行Webapp时遇到了这个问题,但在Neo中却很有效。
请告诉我我的路由是否存在问题?
最好的问候
灰
在日志中,您会看到消息" (HTML5应用程序运行程序)VError:xs-app.json/routes/0/csrfProtection:无效的类型:字符串(预期的布尔值)"。 p>
因此,请调整您的文件,以对" csrfProtection"属性使用布尔值:
一周热门 更多>