【问题标题】:Two identical metadata requests, first one returns status 200, the 2nd one 404两个相同的元数据请求,第一个返回状态 200,第二个返回 404
【发布时间】:2018-03-14 16:43:18
【问题描述】:

您将在下面找到对同一 OData 服务的 2 个元数据请求。除了 cookie 数字流,它们看起来像 2 滴水,完全一样。

第一个是通过 manifest.json 文件触发的,结果是成功的。将数据源定义复制到另一个不同应用程序的 manifest.json 文件中,并让调试器工作,期待同样的成功结果。

“数据源”:{“mainService”:{“uri”:“/Uni_Sandpit_Virtual/sap/opu/odata/SAP/ZCONTRACTS_SRV/”,“类型”:“OData”,“设置”:{“ odataVersion": "2.0" } } },

令我惊讶的是,第二次元数据调用返回 404(未找到)。我在这里想念什么?

最好的问候,

格雷格

Request returning status 200 Request returning status 404

【问题讨论】:

    标签: odata sapui5


    【解决方案1】:

    ​发现问题,发布它以防其他人遇到同样的问题。

    neo-app.json 文件中缺少“路径”块:

    { "path": "/Uni_Sandpit_Virtual", "target": { "type": "destination", "name": "Uni_Sandpit_Virtual" },

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-13
      • 1970-01-01
      • 2020-05-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多