【问题标题】:Why does the cosmosdb emulator throw this error and how to solve it?cosmosdb模拟器为什么会抛出这个错误以及如何解决?
【发布时间】:2020-10-12 17:23:27
【问题描述】:

我已经工作了几天,试图让 cosmosdb 模拟器正常工作。我有一个 macbook pro,并且正在虚拟框中运行 windows。我已经在这个虚拟机上安装了 cosmosdb 模拟器。我使用this link 来帮助设置。如果我不尽快解决这个问题,我的团队将切换到 mongodb/mongodb atlas。我有模拟器在windows中运行。我正在尝试为在 OSX 中运行的应用程序创建一个新数据库。我点击 URL 上的资源管理器选项卡:

https://localhost:8081/_explorer/index.html

然后我点击

新容器

我填写表格以创建一个新数据库。当我单击确定时。我收到一个错误:

{   "code": 500,   "body": {
    "code": "InternalServerError",
    "message": "Service is currently unavailable, please retry after a while. If this problem persists please contact support.\r\nActivityId: 3653c44c-0a9e-4068-b48f-1651c31eb7b8, Microsoft.Azure.Documents.Common/2.11.0"   },   "headers": {
    "content-location": "https://localhost:8081/dbs/drafts",
    "content-type": "application/json",
    "date": "Mon, 12 Oct 2020 17:08:30 GMT",
    "server": "Microsoft-HTTPAPI/2.0",
    "x-firefox-spdy": "h2",
    "x-ms-activity-id": "3653c44c-0a9e-4068-b48f-1651c31eb7b8",
    "x-ms-gatewayversion": "version=2.11.0",
    "x-ms-throttle-retry-count": 0,
    "x-ms-throttle-retry-wait-time-ms": 0   },   "activityId": "3653c44c-0a9e-4068-b48f-1651c31eb7b8" }

为什么会这样?如何在本地 cosmosdb 模拟器中创建一个数据库以与 SQL API 一起使用,以便我可以在 UI 以及我的 java 应用程序中与之交互?

【问题讨论】:

    标签: azure-cosmosdb azure-cosmosdb-emulator


    【解决方案1】:

    模拟器的 UI 仅支持 SQL API。这是记录在here

    有关更多详细信息,请参阅Troubleshooting the emulator。有一段关于你的错误。如果这不能解决您的问题,请参阅收集跟踪文件中的步骤,然后按照本节所述打开支持票证。

    【讨论】:

    • 谢谢@Mark Brown。我想为此使用 SQL API。我正在尝试使用 UI 创建表,但出现上述错误。如何创建将使用 SQL API 而不会收到上述错误的表?
    • 创建表?你是说容器?
    • 查看我附加到我的答案的有关故障排除的附加信息。这将解决问题或帮助支持工程师提供足够的数据来解决。
    • 感谢我完成了这些步骤。我不得不用 azure 创建一张票,因为修复建议对我不起作用。再次感谢。
    猜你喜欢
    • 2021-01-10
    • 1970-01-01
    • 2021-06-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-01
    • 1970-01-01
    相关资源
    最近更新 更多