使用(mongodb)错误且尾光标中没有更多文档的情况下帮助连接到Azure Cosmos DB [英] Help on connect to azure cosmos DB with (mongodb) error with No more documents in tailed cursor

查看:128
本文介绍了使用(mongodb)错误且尾光标中没有更多文档的情况下帮助连接到Azure Cosmos DB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Nodejs中> = 8

带有"socket.io"的"p":"2.2.0",和"socket.io-adapter-mongo":"^ 2.0.3". .然后在连接后给我一个错误:

"socket.io-adapter-mongo":"^ 2.0.3",

< style type ="text/css"> p.p1 {margin:0.0px 0.0px 0.0px 0.0px;字体:11.0px Menlo;颜色:#000000} span.s1 {font-variant-ligatures:no-common-ligatures}</style>

尾光标{"name":"MongoError","tailable":true,"awaitData":true}

中没有更多文档

我要确认:

1:我们的Azure cosmos DB支持套接字吗?

2:我是否需要为 azure cosmos DB支持套接字进行一些设置?

谢谢

想尽快给我答复

解决方案

您好,JiashuKevin,

您需要使用MongoDB客户端指定TCP模式.请通过以下链接查看更多信息,因为要使其正常工作需要具备一些先决条件:

Azure Cosmos的性能提示数据库和.NET


In Nodejs >= 8

with "socket.io": "2.2.0", and "socket.io-adapter-mongo": "^2.0.3" . then after connect give me an error:

"socket.io-adapter-mongo": "^2.0.3",

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000} span.s1 {font-variant-ligatures: no-common-ligatures} </style>

No more documents in tailed cursor {"name":"MongoError","tailable":true,"awaitData":true}

I want to confirm that:

1: our azure cosmos DB support socket ?

2: Do I need some setting for azure cosmos DB support socket?

Thanks

want give me response as soon as possible

解决方案

Hi JiashuKevin,

You need to specify TCP mode with the MongoDB client. Please see more from the below link, as there are some prerequisites for this to work correctly:

Performance tips for Azure Cosmos DB and .NET

Regards,

Mike


这篇关于使用(mongodb)错误且尾光标中没有更多文档的情况下帮助连接到Azure Cosmos DB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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