例外:跨分区查询不能直接在Azure Cosmos DB查询中提供 [英] Exception: cross partition query can not be directly served in Azure Cosmos DB query

查看:87
本文介绍了例外:跨分区查询不能直接在Azure Cosmos DB查询中提供的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

查询Azure Cosmos DB时遇到以下异常.我无法理解此异常的确切问题.它曾经可以更早地工作,而且我敢肯定,azure cosmos DB尚未进行过任何更改.任何人都可以建议如何继续解决此异常.

I get the following exception while making a query to Azure Cosmos DB. I am unable to understand the exact problem with this exception. It used to work earlier and I am sure that no recent changes were made to azure cosmos DB. Can anyone suggest how to proceed forward in fixing this exception.

DocumentClientException:由网关提供.这是第一次 所有新客户都会知道如何(内部)例外 优雅地处理.跟踪此异常,但是除非您看到它 冒出气泡(仅在较旧的SDK客户端上发生), 那么您可以放心地忽略此消息.

DocumentClientException: The provided 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.

推荐答案

1.4.1版本是一个非常老的SDK. SDK会填充版本标头,以便服务器知道应该处理哪个版本的请求,但是在这种情况下,服务器端似乎有所更改.

The 1.4.1 version is a really old SDK. The SDKs populate the version header so that the server would know which version should handle this request but it seems like in this case something has changed on the server side.

升级到最新的SDK版本将解决此问题(如评论中所述).

Upgrading to latest SDK version will fix the issue (as discussed in the comments).

这篇关于例外:跨分区查询不能直接在Azure Cosmos DB查询中提供的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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