我已经工作了几天,试图让 cosmosdb 模拟器正常工作。我有一个 macbook pro,并且正在虚拟框中运行 windows。我已经在这个虚拟机上安装了 cosmosdb 模拟器。我已使用此链接来帮助设置。如果我不尽快解决这个问题,我的团队将切换到 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 应用程序中与它进行交互?