Cosmos DB仿真器:无法获取商品的授权标头 [英] Cosmos DB Emulator: Failed to get authorization headers for offers
问题描述
我从版本升级了
重置后,它将起作用。另外请记住,2.0版之前的SDK无法在新的模拟器上运行。
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
Failed to get authorization headers for offers: {"readyState":4,"responseText":"{\"code\":\"InternalServerError\",\"message\":\"Unknown server error occurred when processing this request.\r\nActivityId: 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.\r\nActivityId: 48afdb03-e04b-4a5e-b568-e268c32eb10f, Microsoft.Azure.Documents.Common/2.0.0.0"},"status":500,"statusText":"error"}
I have tried reinstalling it, restarting the PC, and running it as an administrator.
What can I do to fix this?
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.
You can do that from the CosmosDB emulator icon
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屋!