cosmosdb emulator not giving any results

﹥>﹥吖頭↗ 提交于 2019-12-12 12:26:43

问题


I have no idea why this happening while querying the cosmos database it won't show any document not even for the

SELECT * FROM c

but the RU's is shown. but it works fine with the Documents tab in documents tab if I'm using any filter then also it working but it won't work for SQL query.

I have added the screenshot for both the case and also the scale & setting.

Do I need to reinstall the azure cosmosdb emulator? if yes then, is there any way to retain my old data of emulator


回答1:


This looks like a bug with the emulator.

I was able to recreate your issue. This only happens with partitioned collections when the partition key isn't provided and you're trying to do a cross partition query.

If you open your Network tab in the browser you can actually see this message:

"The provided cross partition query can not be directly served by the gateway. This is a first chance (internal) exception that all newer clients will know how to handle gracefully. This exception is traced, but unless you see it bubble up as an exception (which only happens on older SDK clients), then you can safely ignore this message"

However you can also see your results returned in another request, they are just not visualised. I looks like the front end is just not handling this first error properly but I can't know for sure.



来源:https://stackoverflow.com/questions/52830304/cosmosdb-emulator-not-giving-any-results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!