<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:44:08 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-3015] System.IndexOutOfRangeException: Reading IPv4 address, expected 4 bytes.</title>
                <link>https://jira.mongodb.org/browse/CSHARP-3015</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Hi, I am able to connect from Compass and perform all CRUD operations on collection. However, I am getting below exception when doing insert using .Net driver.&#160;&lt;/p&gt;

&lt;p&gt;I have also tested by &quot;&lt;b&gt;Allow from Anywhere&lt;/b&gt;&quot; option in IP Whitelisting but that doesn&apos;t work either.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Here is my connection string&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&quot;mongodb+srv://mongodb-user:password@my-production-i5mve.mongodb.net/?retryWrites=true&amp;amp;w=majority&amp;amp;ssl=true&amp;amp;connect=replicaSet&quot;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I also tried by adding/removing options in connection string. e.g. removing&#160;connect=replicaSet etc. But nothing worked.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector&lt;/p&gt;
{ AllowedLatencyRange = 00:00:00.0150000 }
&lt;p&gt; }. Client view of cluster state is { ClusterId : &quot;1&quot;, ConnectionMode : &quot;ReplicaSet&quot;, Type : &quot;ReplicaSet&quot;, State : &quot;Disconnected&quot;, Servers : [], DnsMonitorException : &quot;DnsClient.DnsResponseException: Unhandled exception&lt;br/&gt;
 ---&amp;gt; &lt;font color=&quot;#de350b&quot;&gt;&lt;b&gt;System.IndexOutOfRangeException: Reading IPv4 address, expected 4 bytes.&lt;/b&gt;&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#de350b&quot;&gt; &lt;b&gt;at DnsClient.DnsDatagramReader.ReadIPAddress()&lt;/b&gt;&lt;/font&gt;&lt;br/&gt;
 at DnsClient.DnsRecordFactory.GetRecord(ResourceRecordInfo info)&lt;br/&gt;
 at DnsClient.DnsMessageHandler.GetResponseMessage(ArraySegment`1 responseData)&lt;br/&gt;
 at DnsClient.DnsUdpMessageHandler.Query(IPEndPoint server, DnsRequestMessage request, TimeSpan timeout)&lt;br/&gt;
 at DnsClient.LookupClient.ResolveQuery(IReadOnlyCollection`1 servers, DnsMessageHandler handler, DnsRequestMessage request, Boolean useCache, LookupClientAudit continueAudit)&lt;br/&gt;
 &amp;#8212; End of inner exception stack trace &amp;#8212;&lt;br/&gt;
 at DnsClient.LookupClient.ResolveQuery(IReadOnlyCollection`1 servers, DnsMessageHandler handler, DnsRequestMessage request, Boolean useCache, LookupClientAudit continueAudit)&lt;br/&gt;
 at DnsClient.LookupClient.QueryInternal(IReadOnlyCollection`1 servers, DnsQuestion question, Boolean useCache)&lt;br/&gt;
 at DnsClient.LookupClient.Query(String query, QueryType queryType, QueryClass queryClass)&lt;br/&gt;
 at MongoDB.Driver.Core.Misc.DnsClientWrapper.ResolveSrvRecords(String service, CancellationToken cancellationToken)&lt;br/&gt;
 at MongoDB.Driver.Core.Clusters.DnsMonitor.Monitor()&quot; }.&lt;/p&gt;</description>
                <environment>Windows 10. Visual Studio Community Version 2019</environment>
        <key id="1273274">CSHARP-3015</key>
            <summary>System.IndexOutOfRangeException: Reading IPv4 address, expected 4 bytes.</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="dmitry.lukyanov@mongodb.com">Dmitry Lukyanov</assignee>
                                    <reporter username="prasoon@metalbrain.in">Prasoon Gupta</reporter>
                        <labels>
                    </labels>
                <created>Sat, 14 Mar 2020 07:12:42 +0000</created>
                <updated>Wed, 18 Mar 2020 12:13:10 +0000</updated>
                            <resolved>Wed, 18 Mar 2020 12:13:10 +0000</resolved>
                                    <version>2.10.2</version>
                                                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2984815" author="dmitry.lukyanov" created="Wed, 18 Mar 2020 12:12:50 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=prasoon%40metalbrain.in&quot; class=&quot;user-hover&quot; rel=&quot;prasoon@metalbrain.in&quot;&gt;prasoon@metalbrain.in&lt;/a&gt;, we will update the version of DnsClient in the next release.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kletterer%40web.de&quot; class=&quot;user-hover&quot; rel=&quot;kletterer@web.de&quot;&gt;kletterer@web.de&lt;/a&gt;, thank you for your participation.&lt;/p&gt;</comment>
                            <comment id="2984668" author="prasoon@metalbrain.in" created="Wed, 18 Mar 2020 07:28:38 +0000"  >&lt;p&gt;Hi Michael,&#160;Upgrading DnsClient to v1.3.0 worked. Thanks for the help &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="2982700" author="prasoon@metalbrain.in" created="Tue, 17 Mar 2020 05:31:18 +0000"  >&lt;p&gt;Hi Michael, This issue only occurs while I use my internet connection at home. I could not try your suggestion so far but I will give you an update today because I am working from home due to Covid19.&#160;&lt;/p&gt;</comment>
                            <comment id="2980492" author="kletterer@web.de" created="Sun, 15 Mar 2020 15:10:11 +0000"  >&lt;p&gt;Did you see my comment on your 2nd issue reporting the same problem?&lt;/p&gt;

&lt;p&gt;Here again:&lt;/p&gt;

&lt;p&gt;&amp;#8212;&lt;/p&gt;

&lt;p&gt;This might also be related to this issue&#160;&lt;a href=&quot;https://github.com/MichaCo/DnsClient.NET/issues/51&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/MichaCo/DnsClient.NET/issues/51&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and #&lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2968&quot; title=&quot;Exception occurs when using mongodb+srv connection string&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2968&quot;&gt;&lt;del&gt;CSHARP-2968&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would be great if you could try upgrading DnsClient to v1.3.0 (beta) and try with that?&lt;/p&gt;

&lt;p&gt;&amp;#8212;&lt;/p&gt;

&lt;p&gt;Did you try that?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Regarding your last comment, that&apos;s probably not helping, you most likely have 2 different DNS servers sending different responses and one of them sends somehting DnsClient cannot handle. Again, I&apos;m pretty sure that&apos;ll be fixed in 1.3.0 of DnsClient, if you could try that out that would help me a lot.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2980455" author="prasoon@metalbrain.in" created="Sun, 15 Mar 2020 14:15:32 +0000"  >&lt;p&gt;I am not sure the exact problem but it is definitely related to what network I use. I tested by connection it to my mobile&apos;s hot-spot and it worked. But when I again switched to broadband connection and it fails. Hope it helps someone.&lt;/p&gt;</comment>
                            <comment id="2979672" author="prasoon@metalbrain.in" created="Sat, 14 Mar 2020 07:40:49 +0000"  >&lt;p&gt;It was working fine till yesterday and I have not changed anything but suddenly it stopped working.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht1xif:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>