Cosmos DB 模拟器:无法获取优惠的授权标头 [英] Cosmos DB Emulator: Failed to get authorization headers for offers

查看:14
本文介绍了Cosmos DB 模拟器:无法获取优惠的授权标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从版本升级了 Azure Cosmos DB Emulator1.22 到 2.0.现在,当我转到 本地数据资源管理器 时,资源管理器选项卡中没有加载任何内容,我看到错误

I upgraded Azure Cosmos DB Emulator from version 1.22 to 2.0. Now when I go to the local Data Explorer, nothing loads in the Explorer tab and I see error

无法获取要约的授权标头:{"readyState":4,"responseText":"{"code":"InternalServerError","message":"处理时发生未知服务器错误此请求. ActivityId: 48afdb03-e04b-4a5e-b568-e268c32eb10f, Microsoft.Azure.Documents.Common/2.0.0.0"}","re​​sponseJSON":{"code":"InternalServerError","message":"处理此请求时出现未知服务器错误. ActivityId: 48afdb03-e04b-4a5e-b568-e268c32eb10f, Microsoft.Azure.Documents.Common/2.0.0.0"},"status":500,"statusText":错误"}

Failed to get authorization headers for offers: {"readyState":4,"responseText":"{"code":"InternalServerError","message":"Unknown server error occurred when processing this request. ActivityId: 48afdb03-e04b-4a5e-b568-e268c32eb10f, Microsoft.Azure.Documents.Common/2.0.0.0"}","responseJSON":{"code":"InternalServerError","message":"Unknown server error occurred when processing this request. ActivityId: 48afdb03-e04b-4a5e-b568-e268c32eb10f, Microsoft.Azure.Documents.Common/2.0.0.0"},"status":500,"statusText":"error"}

我尝试重新安装它,重新启动 PC,并以管理员身份运行它.

I have tried reinstalling it, restarting the PC, and running it as an administrator.

我该怎么做才能解决这个问题?

What can I do to fix this?

推荐答案

看起来 2.0.0 CosmosDB Emulator 要求您重置其中的数据.这是唯一为我解决的问题.

It looks like 2.0.0 CosmosDB Emulator requires you to reset the data that's in it. That's the only thing that fixed it for me.

您可以通过 CosmosDB 模拟器图标执行此操作

You can do that from the CosmosDB emulator icon

一旦您重置,它将起作用.另请记住,2.0 之前的 SDK 将无法在新模拟器上运行.

Once you reset, it will work. Also keep in mind that pre 2.0 SDKs won't work on the new emulator.

这篇关于Cosmos DB 模拟器:无法获取优惠的授权标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆