[CSHARP-3107] calling fromconnectionString throws null DNSClient exception - Created: 20/May/20 Updated: 21/May/20 Resolved: 21/May/20 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Connectivity |
| Affects Version/s: | 2.9.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sasan Pasha | Assignee: | Dmitry Lukyanov (Inactive) |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
visual stuido 2019, csharp, xamarin forms - azure cosmos DB |
||
| Description |
|
it seems something has changed since version 2.9.0 that throws the exception whenever you try to initiate the DB from the connection string. previous version all works fine.
at DnsClient.NameServer.ResolveNameServers (System.Boolean skipIPv6SiteLocal, System.Boolean fallbackToGooglePublicDns) [0x0005e] in <93b57b4b99c64a96a2c065ea9ae1fc1f>:0 |
| Comments |
| Comment by Sasan Pasha [ 21/May/20 ] |
|
can you please confirm you used Visual studio 2019, Xamarin Forms cross platform ( android) and trying to call the library? the issue shows up on the android device not being able to read the DNS - older version works fine. the fact that older versions of the library work and this version doesn't points to the fact that something in this library is changed and there is nothing to do with azure - can you please check before closing the ticket? |
| Comment by Dmitry Lukyanov (Inactive) [ 21/May/20 ] |
|
Hello sasan.pasha@gmail.com, |
| Comment by Sasan Pasha [ 21/May/20 ] |
|
the connection string is "mongodb://[username]:[password]@[AppName].mongo.cosmos.azure.com:10255/?ssl=true&replicaSet=globaldb&maxIdleTimeMS=120000&appName=@[AppName]@" the full exception is Could not find file "/etc/resolv.conf" DnsClient {System.NullReferenceException: Object reference not set to an instance of an object. at DnsClient.NameServer.ResolveNameServers (System.Boolean skipIPv6SiteLocal, System.Boolean fallbackToGooglePublicDns) [0x000df] in <62d2e9033ef84b01abb5bb4b3b2561e7>:0 |
| Comment by Dmitry Lukyanov (Inactive) [ 20/May/20 ] |
|
Hello sasan.pasha@gmail.com, |