"failed to get context" 针对真实服务器的错误,与 mockserver 一起工作正常

"failed to get context" error against real server, works fine with mockserver

在步骤 2 中的 ODATA V4 tutorial 之后:针对模拟服务器的应用程序 运行s,针对真实服务器的 运行 给出了提示。使用现有的 index.html 作为 test/mockServer.html 并创建一个新的 index.html,指向 ComponentSupport for oninit。添加了 cors-anywhere 并调整了清单。模拟服务器和真实服务器都运行良好。

那是在第 2 步中,该应用程序在真实服务器上也能正常工作。快进到第 5 步,我注意到应用程序在 运行 对真实服务器进行连接时无法加载任何数据。 Long story short, the backend is throwing an error, not even "count" together with "top" is accepted. I checked the docs for ODATA,“计数”似乎不是排他性选项。

我是否从根本上误解了 ODATA 的工作方式?我对模拟服务器 运行 没问题这一事实感到特别困惑。

编辑:created bugreport

closing comment of my bugreport 中所述,Microsoft 已确认该问题:“这是由于我们在支持服务中使用的 OData WebAPI 库版本错误所致。我有各种更新修复,包括更新到包含此修复的最新 WebAPI 库,我还没有推出生产。让我看看我什么时候可以部署它。“